aboutsummaryrefslogtreecommitdiffstats
path: root/mod/salmon.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-16 14:58:07 -0800
committerFriendika <info@friendika.com>2011-01-16 14:58:07 -0800
commitf4ebd2a21332264d998d5fad8b7e5e86dd889862 (patch)
treed4f816cc495f95d07de72676ab19f50c33a28eef /mod/salmon.php
parente7ae4ad3fa010e5f636738366aae81e129990fa7 (diff)
downloadvolse-hubzilla-f4ebd2a21332264d998d5fad8b7e5e86dd889862.tar.gz
volse-hubzilla-f4ebd2a21332264d998d5fad8b7e5e86dd889862.tar.bz2
volse-hubzilla-f4ebd2a21332264d998d5fad8b7e5e86dd889862.zip
Don't send conversation slaps, only immediate replies. Redundant and flawed.
Diffstat (limited to 'mod/salmon.php')
-rw-r--r--mod/salmon.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/salmon.php b/mod/salmon.php
index 2ae6aa628..8c7d921c8 100644
--- a/mod/salmon.php
+++ b/mod/salmon.php
@@ -199,7 +199,12 @@ function salmon_post(&$a) {
$hub = '';
- // consume_feed will only accept a follow activity from this person if there is no contact record.
+ /**
+ *
+ * anti-spam measure: consume_feed will accept a follow activity from
+ * this person (and nothing else) if there is no existing contact record.
+ *
+ */
$contact_rec = ((count($r)) ? $r[0] : null);