From c5304d1ff42350fc09753e52b92e4cd9e72a7ff9 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 23 Sep 2020 09:00:09 +0000 Subject: [PATCH] Use plainext --- src/Protocol/ActivityPub/Processor.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index c94a82a9ea..f181e70c6c 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -43,6 +43,7 @@ use Friendica\Protocol\ActivityPub; use Friendica\Util\DateTimeFormat; use Friendica\Util\JsonLD; use Friendica\Util\Strings; +use Text_LanguageDetect; /** * ActivityPub Processor Protocol class @@ -845,7 +846,7 @@ class Processor } } - $content = mb_strtolower(JsonLD::fetchElement($activity['as:object'], 'as:content', '@value')); + $content = mb_strtolower(BBCode::toPlaintext(HTML::toBBCode(JsonLD::fetchElement($activity['as:object'], 'as:content', '@value')), false)); $tagList = array_unique(array_merge($systemTags, $userTags)); foreach ($messageTags as $tag) {