]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't show self-subscriptions in FOAF
authorEvan Prodromou <evan@controlyourself.ca>
Sun, 30 Nov 2008 21:37:55 +0000 (16:37 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Sun, 30 Nov 2008 21:37:55 +0000 (16:37 -0500)
darcs-hash:20081130213755-5ed1f-bfece58a97ae85f959eb27a38d9bbb622e178793.gz

actions/foaf.php

index c64617e5f04c566bc7edbb00b3265154019daf2f..6811fc05af647808fd384934c79e20d0bfc44f57 100644 (file)
@@ -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()) {