]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/peopletagnoticestream.php
If there's no Happening, we can't use the RSVP.
[quix0rs-gnu-social.git] / lib / peopletagnoticestream.php
index 9477ca8ea6dfc5f0cf52d06131c2461f01866d3b..4422261ae9a6950881d7823ea1c1190b1123a894 100644 (file)
@@ -99,7 +99,9 @@ class RawPeopletagNoticeStream extends NoticeStream
         $ptag = new Profile_tag();
         $ptag->tag    = $this->profile_list->tag;
         $ptag->tagger = $this->profile_list->tagger;
-        $notice->joinAdd($ptag);
+        $notice->joinAdd(array('profile_id', 'profile_tag:tagged'));
+        $notice->whereAdd('profile_tag.tagger = ' . $this->profile_list->tagger);
+        $notice->whereAdd(sprintf('profile_tag.tag = "%s"', $this->profile_list->tag));
 
         if ($since_id != 0) {
             $notice->whereAdd('notice.id > ' . $since_id);