12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- if (!defined('STATUSNET') && !defined('LACONICA')) {
- exit(1);
- }
- class SubscribersPeopleTagCloudSection extends SubPeopleTagCloudSection
- {
- function title()
- {
-
- return _('People Tagcloud as tagged');
- }
- function tagUrl($tag) {
- $nickname = $this->out->profile->nickname;
- return common_local_url('subscribers', array('nickname' => $nickname, 'tag' => $tag));
- }
- function query() {
- return 'select profile_tag.tag, count(profile_tag.tag) as weight from subscription left join (profile_tag, profile_list) on subscriber=profile_tag.tagged and subscribed=profile_tag.tagger and profile_tag.tagger = profile_list.tagger and profile_tag.tag = profile_list.tag where subscribed=%d and subscriber != subscribed and profile_list.private = false and profile_tag.tag is not null group by profile_tag.tag order by weight desc';
- }
- }
|