summaryrefslogtreecommitdiff
path: root/actions/all.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-17 21:55:51 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-17 21:55:51 -0400
commit793d48dc9e1d73d871bf34d9f7c1da8916134d1b (patch)
treeeca9b97ed3da44402029f6509be9df539524ad73 /actions/all.php
parent81e037558f784d3784f61ef2dd9d17acc79255ec (diff)
smaller packet
darcs-hash:20080518015551-84dde-65964e140ed0b6c23aeee368fcffccdc14d71c61.gz
Diffstat (limited to 'actions/all.php')
-rw-r--r--actions/all.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/all.php b/actions/all.php
index 949c72275..92ae385ca 100644
--- a/actions/all.php
+++ b/actions/all.php
@@ -31,7 +31,7 @@ class AllAction extends ShowstreamAction {
# XXX: chokety and bad
- $notice->whereAdd('EXISTS (SELECT subscribed from subscription where subscriber = '.$profile->id.')', 'OR');
+ $notice->whereAdd('EXISTS (SELECT subscribed from subscription where subscriber = '.$profile->id.' and subscribed = notice.profile_id)', 'OR');
$notice->whereAdd('profile_id = ' . $profile->id, 'OR');
$notice->orderBy('created DESC');