]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Diaspora.php
Merge pull request #6315 from MrPetovan/bug/6309-add-fulltext-index-profile
[friendica.git] / src / Protocol / Diaspora.php
index 4ce6ef7010f478b8c7a0daca4bf51368a6b9c9c9..64009581b5e2dea80f6e6c808766624e753cb98f 100644 (file)
@@ -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;
                }