X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FProtocol%2FDiaspora.php;h=64009581b5e2dea80f6e6c808766624e753cb98f;hb=94eca7704130822bf83bb5fee6930dee6bae81dd;hp=4ce6ef7010f478b8c7a0daca4bf51368a6b9c9c9;hpb=3ddd622f8da44f599f93afb04e68ae7f7f9a3880;p=friendica.git diff --git a/src/Protocol/Diaspora.php b/src/Protocol/Diaspora.php index 4ce6ef7010..64009581b5 100644 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@ -3724,12 +3724,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; }