]> git.mxchange.org Git - friendica.git/commitdiff
Fix own post check for content filter
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 28 Apr 2018 23:11:11 +0000 (19:11 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Sat, 28 Apr 2018 23:11:11 +0000 (19:11 -0400)
include/text.php

index 5e189d58f14857f480d4b291e8d513a16dacc0b3..3375a33b6107f6d6e5c1e900ad55a812b0777319 100644 (file)
@@ -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']);
                }