ActivityPub: Delete Comments

This commit is contained in:
Michael 2021-03-24 22:22:14 +00:00
parent a4f7fddf41
commit 5bbcb8bdf4
4 changed files with 37 additions and 30 deletions

View file

@ -214,13 +214,8 @@ class Post
$pinned = DI::l10n()->t('pinned item');
}
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 {
// Showing the one or the other text, depending upon if we can only hide it or really delete it.
$delete = $origin ? DI::l10n()->t('Delete globally') : DI::l10n()->t('Remove locally');
}
// Showing the one or the other text, depending upon if we can only hide it or really delete it.
$delete = $origin ? DI::l10n()->t('Delete globally') : DI::l10n()->t('Remove locally');
$drop = false;
$block = false;