The "Follow" activity shouldn't be send to Diaspora
This commit is contained in:
parent
3b5bcd35f9
commit
c43bd890a5
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue