mirror of
https://github.com/friendica/friendica
synced 2025-04-26 13:50:11 +00:00
ActivityPub: Delete Comments
This commit is contained in:
parent
a4f7fddf41
commit
5bbcb8bdf4
4 changed files with 37 additions and 30 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue