Diaspora: Native reshares only work with toplevel posts
This commit is contained in:
parent
dbdc8c91f6
commit
a173bf8eab
1 changed files with 5 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue