mirror of
https://github.com/friendica/friendica
synced 2025-04-27 02:30:10 +00:00
Replace "id = parent" checks with "gravity" checks
This commit is contained in:
parent
133de9b524
commit
973abb6196
13 changed files with 56 additions and 56 deletions
|
@ -214,7 +214,7 @@ class Post
|
|||
$pinned = DI::l10n()->t('pinned item');
|
||||
}
|
||||
|
||||
if ($origin && ($item['id'] != $item['parent']) && ($item['network'] == Protocol::ACTIVITYPUB)) {
|
||||
if ($origin && ($item['gravity'] != GRAVITY_PARENT) && ($item['network'] == Protocol::ACTIVITYPUB)) {
|
||||
// ActivityPub doesn't allow removal of remote comments
|
||||
$delete = DI::l10n()->t('Delete locally');
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue