And again ...
This commit is contained in:
parent
f2f028d8b3
commit
953ffd6838
1 changed files with 4 additions and 0 deletions
|
@ -1131,6 +1131,10 @@ function twitter_expand_entities(App $a, $body, $item, $picture)
|
||||||
|
|
||||||
$oembed_data = OEmbed::fetchURL($expanded_url);
|
$oembed_data = OEmbed::fetchURL($expanded_url);
|
||||||
|
|
||||||
|
if (empty($oembed_data)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Quickfix: Workaround for URL with "[" and "]" in it
|
// Quickfix: Workaround for URL with "[" and "]" in it
|
||||||
if (strpos($expanded_url, "[") || strpos($expanded_url, "]")) {
|
if (strpos($expanded_url, "[") || strpos($expanded_url, "]")) {
|
||||||
$expanded_url = $url->url;
|
$expanded_url = $url->url;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue