1
1
Fork 0

Merge pull request #6318 from annando/no-diaspora-follow

The "Follow" activity shouldn't be send to Diaspora
This commit is contained in:
Hypolite Petovan 2018-12-24 10:43:32 -05:00 committed by GitHub
commit a8cbeab8a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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;
}