From 953ffd683851a9355c35fdda592b65bc5bab53aa Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 9 Jul 2018 22:17:18 +0000 Subject: [PATCH] And again ... --- twitter/twitter.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/twitter/twitter.php b/twitter/twitter.php index 34622967..e6c3e4a7 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -1131,6 +1131,10 @@ function twitter_expand_entities(App $a, $body, $item, $picture) $oembed_data = OEmbed::fetchURL($expanded_url); + if (empty($oembed_data)) { + continue; + } + // Quickfix: Workaround for URL with "[" and "]" in it if (strpos($expanded_url, "[") || strpos($expanded_url, "]")) { $expanded_url = $url->url;