]> git.mxchange.org Git - friendica.git/commitdiff
The "Follow" activity shouldn't be send to Diaspora
authorMichael <heluecht@pirati.ca>
Mon, 24 Dec 2018 14:50:21 +0000 (14:50 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 24 Dec 2018 14:50:21 +0000 (14:50 +0000)
src/Protocol/Diaspora.php

index d59eb7a0ad268c302b510eb341011d37b9313a2d..38d9deb7f8371b0b13815aee93a4db16bbf13eff 100644 (file)
@@ -3727,12 +3727,12 @@ class Diaspora
                } elseif (in_array($item["verb"], [ACTIVITY_LIKE, ACTIVITY_DISLIKE])) {
                        $message = self::constructLike($item, $owner);
                        $type = "like";
-               } else {
+               } elseif (!in_array($item["verb"], [ACTIVITY_FOLLOW])) {
                        $message = self::constructComment($item, $owner);
                        $type = "comment";
                }
 
-               if (!$message) {
+               if (empty($message)) {
                        return false;
                }