]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Post.php
Merge pull request #8695 from annando/no-parent
[friendica.git] / src / Object / Post.php
index 8488df000f5aa3d65d6ed72a498417c934f1e7c6..1ca02873d7f0d6b7a9144b53d5e46c98180c055c 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 {