mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-15 04:54:01 +02:00
refactor: return proper response object (#4169)
This commit is contained in:
@@ -417,9 +417,11 @@ class ReutersBridge extends BridgeAbstract
|
||||
$get_embed_url = 'https://publish.twitter.com/oembed?url='
|
||||
. urlencode($tweet_url) .
|
||||
'&partner=&hide_thread=false';
|
||||
|
||||
$oembed_json = json_decode(getContents($get_embed_url), true);
|
||||
$embed .= $oembed_json['html'];
|
||||
} catch (Exception $e) { // In case not found any tweet.
|
||||
} catch (\Exception $e) {
|
||||
// In case not found any tweet.
|
||||
$embed .= '';
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user