Skip to content

Commit

Permalink
[twitter] Fix wrong namespace for getTags
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPetovan committed Nov 11, 2018
1 parent 2d745b1 commit 053fb67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion twitter/twitter.php
Expand Up @@ -65,6 +65,7 @@
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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 053fb67

Please sign in to comment.