Fall back to normal twitter share if rich OEmbed is disabled

- Fix typo
This commit is contained in:
Hypolite Petovan 2018-01-06 21:57:58 -05:00
parent 9e54d8d4b4
commit 1cd8001833
2 changed files with 23 additions and 22 deletions

View file

@ -586,8 +586,8 @@ function bb_ShareAttributes($share, $simplehtml)
}
break;
default:
// Transforms quoted tweets in rich attachments to avoid nested tweetsx
if (stripos(normalise_link($link), 'http://twitter.com/') === 0) {
// Transforms quoted tweets in rich attachments to avoid nested tweets
if (stripos(normalise_link($link), 'http://twitter.com/') === 0 && OEmbed::isAllowedURL($link)) {
$bookmark = array(sprintf('[bookmark=%s]%s[/bookmark]', $link, $preshare), $link, $preshare);
$text = $preshare . tryoembed($bookmark);
} else {