mirror of
https://github.com/friendica/friendica
synced 2024-11-18 23:43:40 +00:00
Fix own post check for content filter
This commit is contained in:
parent
833fe0e0dc
commit
20289393da
1 changed files with 1 additions and 1 deletions
|
@ -1249,7 +1249,7 @@ function prepare_body(array &$item, $attach = false, $is_preview = false)
|
|||
|
||||
// Compile eventual content filter reasons
|
||||
$filter_reasons = [];
|
||||
if (!$is_preview && !($item['self'] && local_user() == $item['uid'])) {
|
||||
if (!$is_preview && public_contact() != $item['author-id']) {
|
||||
if (!empty($item['content-warning']) && (!local_user() || !PConfig::get(local_user(), 'system', 'disable_cw', false))) {
|
||||
$filter_reasons[] = L10n::t('Content warning: %s', $item['content-warning']);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue