summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-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()) {