]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/subscriberspeopleselftagcloudsection.php
Merge commit 'mainline-write/0.8.x' into 0.8.x
[quix0rs-gnu-social.git] / lib / subscriberspeopleselftagcloudsection.php
index b5a39c6de63793947437d2c3faec18ada39a6b5f..115241a53fce73efde1f8553ceacaf18fc0f4894 100644 (file)
@@ -49,6 +49,14 @@ class SubscribersPeopleSelfTagCloudSection extends SubPeopleTagCloudSection
     }
 
     function query() {
-        return 'select tag, count(tag) as weight from subscription left join profile_tag on tagger = subscriber where subscribed=%d and subscribed != subscriber and tagger = tagged group by tag order by weight desc';
+//        return 'select tag, count(tag) as weight from subscription left join profile_tag on tagger = subscriber where subscribed=%d and subscribed != subscriber and tagger = tagged group by tag order by weight desc';
+
+
+        return 'select tag, count(tag) as weight from subscription left join profile_tag on tagger = subscriber where subscribed=%d and subscribed != subscriber and tagger = tagged and tag is not null group by tag order by weight desc';
+
+//        return 'select tag, count(tag) as weight from subscription left join profile_tag on tagger = subscribed where subscriber=%d and subscribed != subscriber and tagger = tagged and tag is not null group by tag order by weight desc';
+
+
     }
 }
+