summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-11-30 16:37:55 -0500
committerEvan Prodromou <evan@controlyourself.ca>2008-11-30 16:37:55 -0500
commita6a0cf08a20dadc27bf88127d1fe2712484814b9 (patch)
tree6bff5c1e128d7c93770b85322a32ea7c8af0394e
parentcad5603978c06b0c1e23b6f86d3d13176fbcca68 (diff)
don't show self-subscriptions in FOAF
darcs-hash:20081130213755-5ed1f-bfece58a97ae85f959eb27a38d9bbb622e178793.gz
-rw-r--r--actions/foaf.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/foaf.php b/actions/foaf.php
index c64617e5f..6811fc05a 100644
--- a/actions/foaf.php
+++ b/actions/foaf.php
@@ -110,7 +110,8 @@ class FoafAction extends Action {
$sub = new Subscription();
$sub->subscriber = $profile->id;
-
+ $sub->whereAdd('subscriber != subscribed');
+
if ($sub->find()) {
while ($sub->fetch()) {
if ($sub->token) {
@@ -131,6 +132,7 @@ class FoafAction extends Action {
$sub = new Subscription();
$sub->subscribed = $profile->id;
+ $sub->whereAdd('subscriber != subscribed');
if ($sub->find()) {
while ($sub->fetch()) {