"announce" is activated for Twitter as well

This commit is contained in:
Michael 2020-10-11 12:27:19 +00:00
parent bd89b8262f
commit 7c5aa0bbf1

View file

@ -176,7 +176,7 @@ class Post
: false); : false);
$shareable = in_array($conv->getProfileOwner(), [0, local_user()]) && $item['private'] != Item::PRIVATE; $shareable = in_array($conv->getProfileOwner(), [0, local_user()]) && $item['private'] != Item::PRIVATE;
$announceable = $shareable && in_array($item['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN]); $announceable = $shareable && in_array($item['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::TWITTER]);
$edpost = false; $edpost = false;