mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-14 20:21:14 +03:00
[MozillaSecurityBridge] Make the URI unique by adding timestamp (#1005)
* added unique UID + URI if UID is mandatory for RSS-Bridge, the unicity of the URI is also mandatory for some reader (like kriss feed).
This commit is contained in:
parent
473a62ed44
commit
ae40f7b388
1 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,8 @@ class MozillaSecurityBridge extends BridgeAbstract {
|
|||
$item['title'] = $element->innertext;
|
||||
$item['timestamp'] = strtotime($element->innertext);
|
||||
$item['content'] = $element->next_sibling()->innertext;
|
||||
$item['uri'] = self::URI;
|
||||
$item['uri'] = self::URI . '?' . $item['timestamp'];
|
||||
$item['uid'] = self::URI . '?' . $item['timestamp'];
|
||||
$this->items[] = $item;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue