]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/personaltagcloudsection.php
Merge branch 'master' of https://git.gnu.io/gnu/gnu-social into social-master
[quix0rs-gnu-social.git] / lib / personaltagcloudsection.php
index cc1693abcbb44ca0ed6a6f63db9c7ffd5c69f3d0..957def042c60eee31d29c71cd2a0908df5d42766 100644 (file)
@@ -58,12 +58,10 @@ class PersonalTagCloudSection extends TagCloudSection
 
     function getTags()
     {
-        $inbox = Inbox::staticGet('user_id', $this->user->id);
-
         $weightexpr = common_sql_weight('notice_tag.created', common_config('tag', 'dropoff'));
         // @fixme should we use the cutoff too? Doesn't help with indexing per-user.
 
-        $qry = 'SELECT notice_tag.tag, '.
+        $qry = 'SELECT notice_tag.tag, notice_tag.notice_id, '.
           $weightexpr . ' as weight ' .
           'FROM notice_tag JOIN notice ' .
           'ON notice_tag.notice_id = notice.id ' .