[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['title'] = $element->innertext;
|
||||||
$item['timestamp'] = strtotime($element->innertext);
|
$item['timestamp'] = strtotime($element->innertext);
|
||||||
$item['content'] = $element->next_sibling()->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;
|
$this->items[] = $item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue