From: Tobias Diekershoff Date: Mon, 10 Jul 2023 08:01:50 +0000 (+0200) Subject: Merge pull request #13268 from MrPetovan/task/normalize-item-action-label X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1359b171af33d5cca480d3b3c5e0e6d54454dcb7;p=friendica.git Merge pull request #13268 from MrPetovan/task/normalize-item-action-label Normalize item action label key name --- 1359b171af33d5cca480d3b3c5e0e6d54454dcb7 diff --cc src/Object/Post.php index 4c377e946c,915dead940..e7a178ef12 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@@ -278,13 -274,9 +275,13 @@@ class Pos ]; $collapse = [ 'collapsing' => true, - 'collapse' => DI::l10n()->t('Collapse %s', $item['author-name']), + 'label' => DI::l10n()->t('Collapse %s', $item['author-name']), 'author_id' => $item['author-id'], ]; + $report = [ + 'label' => DI::l10n()->t('Report post'), + 'href' => 'moderation/report/create?' . http_build_query(['cid' => $item['author-id'], 'uri-ids' => [$item['uri-id']]]), + ]; } $filer = DI::userSession()->getLocalUserId() ? DI::l10n()->t('Save to folder') : false; diff --cc view/templates/wall_thread.tpl index 74e6097b37,90218d9119..978b3151e8 --- a/view/templates/wall_thread.tpl +++ b/view/templates/wall_thread.tpl @@@ -165,11 -166,8 +165,11 @@@ {{/if}} {{if $item.drop && $item.drop.dropping}} - {{$item.drop.delete}} + {{$item.drop.label}} {{/if}} + {{if $item.report}} + {{$item.report.label}} + {{/if}} {{if $item.edpost}} {{$item.edpost.1}} {{/if}} diff --cc view/theme/frio/templates/wall_thread.tpl index 21aac60e8a,29e0c64636..e42225009f --- a/view/theme/frio/templates/wall_thread.tpl +++ b/view/theme/frio/templates/wall_thread.tpl @@@ -406,14 -406,10 +406,15 @@@ as the value of $top_child_total (this {{/if}} {{if $item.collapse}}
  • - {{$item.collapse.collapse}} + {{$item.collapse.label}} +
  • {{/if}} + {{if $item.report}} +
  • + {{$item.report.label}} +
  • + {{/if}}