The "Follow" activity shouldn't be send to Diaspora

pull/6318/head
Michael 2018-12-24 14:50:21 +00:00
rodzic 3b5bcd35f9
commit c43bd890a5
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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