From 20289393daa9cdf5a8a6cb9c0172ec4049c92e49 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 28 Apr 2018 19:11:11 -0400 Subject: [PATCH] Fix own post check for content filter --- include/text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/text.php b/include/text.php index 5e189d58f1..3375a33b61 100644 --- a/include/text.php +++ b/include/text.php @@ -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']); }