From: Michael Date: Mon, 24 Dec 2018 14:50:21 +0000 (+0000) Subject: The "Follow" activity shouldn't be send to Diaspora X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c43bd890a5d266cd9802b34509aa553f15851875;p=friendica.git The "Follow" activity shouldn't be send to Diaspora --- diff --git a/src/Protocol/Diaspora.php b/src/Protocol/Diaspora.php index d59eb7a0ad..38d9deb7f8 100644 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@ -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; }