From: Evan Prodromou Date: Sun, 30 Nov 2008 21:37:55 +0000 (-0500) Subject: don't show self-subscriptions in FOAF X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a6a0cf08a20dadc27bf88127d1fe2712484814b9;p=quix0rs-gnu-social.git don't show self-subscriptions in FOAF darcs-hash:20081130213755-5ed1f-bfece58a97ae85f959eb27a38d9bbb622e178793.gz --- 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()) {