]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Post.php
Merge pull request #8617 from MrPetovan/task/8220-twitter-followers-list
[friendica.git] / src / Object / Post.php
index 8c899683d24a710c23364c1597c1183fdfed640a..0a68bbbe2b7dfb11bc167c88e6c8161fa1eb2c89 100644 (file)
@@ -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 {