From 053fb67a98bce086035d73d813764354d695545f Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 10 Nov 2018 20:52:57 -0500 Subject: [PATCH] [twitter] Fix wrong namespace for getTags Fixes https://github.com/friendica/friendica/issues/6109 Addresses https://github.com/friendica/friendica/issues/5913#issuecomment-437628443 --- twitter/twitter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/twitter/twitter.php b/twitter/twitter.php index a51d3749..904cfefb 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -65,6 +65,7 @@ use Abraham\TwitterOAuth\TwitterOAuth; use Abraham\TwitterOAuth\TwitterOAuthException; use Friendica\App; use Friendica\Content\OEmbed; +use Friendica\Content\Text\BBCode; use Friendica\Content\Text\Plaintext; use Friendica\Core\Addon; use Friendica\Core\Config; @@ -1265,7 +1266,7 @@ function twitter_expand_entities(App $a, $body, $item, $picture) } // it seems as if the entities aren't always covering all mentions. So the rest will be checked here - $tags = Strings::getTags($body); + $tags = BBCode::getTags($body); if (count($tags)) { foreach ($tags as $tag) {