diff --git a/src/Object/Post.php b/src/Object/Post.php index 186ce6b7cc..b1cef57db3 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -178,6 +178,11 @@ class Post $shareable = in_array($conv->getProfileOwner(), [0, local_user()]) && $item['private'] != Item::PRIVATE; $announceable = $shareable && in_array($item['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::DIASPORA, Protocol::TWITTER]); + // On Diaspora only toplevel posts can be reshared + if ($announceable && ($item['network'] == Protocol::DIASPORA) && ($item['gravity'] != GRAVITY_PARENT)) { + $announceable = false; + } + $edpost = false; if (local_user()) {