mirror of
https://github.com/friendica/friendica
synced 2025-04-26 05:50:11 +00:00
Add Report Create module
WIP
This commit is contained in:
parent
76de49a25c
commit
c312d11dab
13 changed files with 510 additions and 3 deletions
|
@ -255,6 +255,7 @@ class Post
|
|||
$block = false;
|
||||
$ignore = false;
|
||||
$collapse = false;
|
||||
$report = false;
|
||||
if (DI::userSession()->getLocalUserId()) {
|
||||
$drop = [
|
||||
'dropping' => $dropping,
|
||||
|
@ -280,6 +281,10 @@ class Post
|
|||
'collapse' => 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;
|
||||
|
@ -554,6 +559,7 @@ class Post
|
|||
'block' => $block,
|
||||
'ignore_author' => $ignore,
|
||||
'collapse' => $collapse,
|
||||
'report' => $report,
|
||||
'vote' => $buttons,
|
||||
'like_html' => $responses['like']['output'],
|
||||
'dislike_html' => $responses['dislike']['output'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue