Commit f251c2e0 authored by Evan Prodromou's avatar Evan Prodromou

Explicit joins for people tags

parent 04dccad3
......@@ -96,10 +96,10 @@ class RawPeopletagNoticeStream extends NoticeStream
$notice->selectAdd();
$notice->selectAdd('notice.id');
$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(sprintf('profile_tag.tag = "%s"', $this->profile_list->tag));
$notice->whereAdd(sprintf('profile_tag.tagger = %d', $this->profile_list->tagger));
if ($since_id != 0) {
$notice->whereAdd('notice.id > ' . $since_id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment