don't show self-subscriptions in FOAF

darcs-hash:20081130213755-5ed1f-bfece58a97ae85f959eb27a38d9bbb622e178793.gz
This commit is contained in:
Evan Prodromou 2008-11-30 16:37:55 -05:00
parent cad5603978
commit a6a0cf08a2

View 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()) {