mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-23 20:24:56 +02:00
[bridges] Change all occurrences of the Item object to array
This commit is contained in:
parent
1f3361c6b4
commit
bf0a9d754e
130 changed files with 844 additions and 844 deletions
|
@ -37,15 +37,15 @@ class GithubIssueBridge extends BridgeAbstract{
|
|||
|
||||
foreach($html->find('.js-comment-container') as $comment){
|
||||
|
||||
$item = new \Item();
|
||||
$item->author=$comment->find('img',0)->getAttribute('alt');
|
||||
$item = array();
|
||||
$item['author']=$comment->find('img',0)->getAttribute('alt');
|
||||
|
||||
$comment=$comment->firstChild()->nextSibling();
|
||||
|
||||
$item->uri=$uri.'#'.$comment->getAttribute('id');
|
||||
$item->title=trim($comment->firstChild()->plaintext);
|
||||
$item->timestamp=strtotime($comment->find('relative-time',0)->getAttribute('datetime'));
|
||||
$item->content=$comment->find('.comment-body',0)->innertext;
|
||||
$item['uri']=$uri.'#'.$comment->getAttribute('id');
|
||||
$item['title']=trim($comment->firstChild()->plaintext);
|
||||
$item['timestamp']=strtotime($comment->find('relative-time',0)->getAttribute('datetime'));
|
||||
$item['content']=$comment->find('.comment-body',0)->innertext;
|
||||
|
||||
$this->items[]=$item;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue