+ $collapse = [
+ 'collapsing' => true,
+ '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']]]),
+ ];
+ $authorBaseUri = new Uri($item['author-baseurl'] ?? '');
+ if ($authorBaseUri->getHost() && !DI::baseUrl()->isLocalUrl($authorBaseUri)) {
+ $ignoreServer = [
+ 'label' => DI::l10n()->t("Ignore %s server", $authorBaseUri->getHost()),
+ ];
+ }