Merge pull request #6318 from annando/no-diaspora-follow
The "Follow" activity shouldn't be send to Diaspora
This commit is contained in:
commit
a8cbeab8a0
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue