[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 = array();
|
||||||
$item['uri'] = self::URI . 'p/' . $media->shortcode . '/';
|
$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)) {
|
if (isset($media->edge_media_to_caption->edges[0]->node->text)) {
|
||||||
$textContent = $media->edge_media_to_caption->edges[0]->node->text;
|
$textContent = $media->edge_media_to_caption->edges[0]->node->text;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue