From: Hypolite Petovan Date: Wed, 13 Jun 2018 01:54:36 +0000 (-0400) Subject: Wrap content filter around entire post including attachments X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d46cac7905c29b09a983d7d456f7862e5e7afcd2;p=friendica.git Wrap content filter around entire post including attachments --- diff --git a/include/text.php b/include/text.php index f145c03e53..acc6bec4fb 100644 --- a/include/text.php +++ b/include/text.php @@ -1280,8 +1280,6 @@ function prepare_body(array &$item, $attach = false, $is_preview = false) $s = $hook_data['html']; unset($hook_data); - $s = apply_content_filter($s, $filter_reasons); - if (! $attach) { // Replace the blockquotes with quotes that are used in mails. $mailquote = '
'; @@ -1385,6 +1383,8 @@ function prepare_body(array &$item, $attach = false, $is_preview = false) $s = preg_replace('|(]+src="[^"]+/photo/[0-9a-f]+)-[0-9]|', "$1-" . $ps, $s); } + $s = apply_content_filter($s, $filter_reasons); + $hook_data = ['item' => $item, 'html' => $s]; Addon::callHooks('prepare_body_final', $hook_data);