[StoriesIGBridge] Add timestamp to feed items (#1331)

This commit is contained in:
Joseph 2019-10-16 19:44:01 +00:00 committed by Lyra
parent a70e00a76d
commit 0f01cc97a4

View file

@ -29,6 +29,7 @@ class StoriesIGBridge extends BridgeAbstract {
$item['title'] = $this->getInput('username') . ' story';
$item['uri'] = $result->find('div.download', 0)->find('a', 0)->href;
$item['author'] = $this->getInput('username');
$item['timestamp'] = strtotime($result->find('time', 0)->datetime);
$item['uid'] = $result->find('time', 0)->datetime;
$item['content'] = $result;