X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FObject%2FPost.php;h=e7a178ef12f699891e638101ceaa6770c1160830;hb=911ed3d6ba98149ed6d400d554e7a0e10bd1c273;hp=915dead9406d521408bef0798d09805911c09a0a;hpb=37131a6785c70882c7da83d63de13167ff8e5290;p=friendica.git diff --git a/src/Object/Post.php b/src/Object/Post.php index 915dead940..e7a178ef12 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -252,6 +252,7 @@ class Post $block = false; $ignore = false; $collapse = false; + $report = false; if (DI::userSession()->getLocalUserId()) { $drop = [ 'dropping' => $dropping, @@ -277,6 +278,10 @@ class Post '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; @@ -551,6 +556,7 @@ class Post 'block' => $block, 'ignore_author' => $ignore, 'collapse' => $collapse, + 'report' => $report, 'vote' => $buttons, 'like_html' => $responses['like']['output'], 'dislike_html' => $responses['dislike']['output'],