]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Post.php
Fix: Pagination in search result works again
[friendica.git] / src / Object / Post.php
index 915dead9406d521408bef0798d09805911c09a0a..e7a178ef12f699891e638101ceaa6770c1160830 100644 (file)
@@ -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'],