mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-26 03:16:33 +03:00
[InstagramBridge] Add author if available in response (#997)
Closes #905
This commit is contained in:
parent
3160e62293
commit
18229b5c70
1 changed files with 4 additions and 0 deletions
|
@ -82,6 +82,10 @@ class InstagramBridge extends BridgeAbstract {
|
|||
$item = array();
|
||||
$item['uri'] = self::URI . 'p/' . $media->shortcode . '/';
|
||||
|
||||
if (isset($media->owner->username)) {
|
||||
$item['author'] = $media->owner->username;
|
||||
}
|
||||
|
||||
if (isset($media->edge_media_to_caption->edges[0]->node->text)) {
|
||||
$textContent = $media->edge_media_to_caption->edges[0]->node->text;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue