mirror of
https://github.com/friendica/friendica
synced 2025-04-25 00:30:32 +00:00
Improved delete text to clarify AP comment delete behaviour
This commit is contained in:
parent
921094017c
commit
6ad082a710
2 changed files with 11 additions and 10 deletions
|
@ -190,8 +190,13 @@ class Post extends BaseObject
|
|||
}
|
||||
}
|
||||
|
||||
// Showing the one or the other text, depending upon if we can only hide it or really delete it.
|
||||
$delete = $origin ? L10n::t('Delete globally') : L10n::t('Remove locally');
|
||||
if ($origin && ($item['id'] != $item['parent']) && ($item['network'] == Protocol::ACTIVITYPUB)) {
|
||||
// ActivityPub doesn't allow removal of remote comments
|
||||
$delete = 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 ? L10n::t('Delete globally') : L10n::t('Remove locally');
|
||||
}
|
||||
|
||||
$drop = [
|
||||
'dropping' => $dropping,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue