From a6a0cf08a20dadc27bf88127d1fe2712484814b9 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 30 Nov 2008 16:37:55 -0500 Subject: [PATCH] don't show self-subscriptions in FOAF darcs-hash:20081130213755-5ed1f-bfece58a97ae85f959eb27a38d9bbb622e178793.gz --- actions/foaf.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/actions/foaf.php b/actions/foaf.php index c64617e5f0..6811fc05af 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()) { -- 2.39.5