mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:10:16 +00:00
Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
c9b6da0127
commit
c1f9c1aaa5
3 changed files with 3 additions and 2 deletions
|
@ -3051,6 +3051,7 @@ class Item
|
|||
if (Contact\User::isCollapsed($item['author-id'], $item['uid'])) {
|
||||
$filter_reasons[] = DI::l10n()->t('Content from %s is collapsed', $item['author-name']);
|
||||
}
|
||||
|
||||
if (!empty($item['content-warning']) && (!DI::userSession()->getLocalUserId() || !DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'system', 'disable_cw', false))) {
|
||||
$filter_reasons[] = DI::l10n()->t('Content warning: %s', $item['content-warning']);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue