mirror of
https://github.com/moparisthebest/wallabag
synced 2024-12-24 08:18:48 -05:00
[fix] RSS feeds were buggy when I update full-text RSS
This commit is contained in:
parent
ac4d114214
commit
9e7c840b18
11
inc/3rdparty/libraries/feedwriter/FeedItem.php
vendored
11
inc/3rdparty/libraries/feedwriter/FeedItem.php
vendored
@ -101,7 +101,7 @@
|
|||||||
*/
|
*/
|
||||||
public function setDescription($description)
|
public function setDescription($description)
|
||||||
{
|
{
|
||||||
$tag = ($this->version == ATOM)? 'summary' : 'description';
|
$tag = 'description';
|
||||||
$this->setElement($tag, $description);
|
$this->setElement($tag, $description);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -129,13 +129,8 @@
|
|||||||
{
|
{
|
||||||
$date = strtotime($date);
|
$date = strtotime($date);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->version == ATOM)
|
if($this->version == RSS2)
|
||||||
{
|
|
||||||
$tag = 'updated';
|
|
||||||
$value = date(DATE_ATOM, $date);
|
|
||||||
}
|
|
||||||
elseif($this->version == RSS2)
|
|
||||||
{
|
{
|
||||||
$tag = 'pubDate';
|
$tag = 'pubDate';
|
||||||
$value = date(DATE_RSS, $date);
|
$value = date(DATE_RSS, $date);
|
||||||
|
@ -870,10 +870,10 @@ class Poche
|
|||||||
}
|
}
|
||||||
// Check the token
|
// Check the token
|
||||||
|
|
||||||
$feed = new FeedWriter(ATOM);
|
$feed = new FeedWriter(RSS2);
|
||||||
$feed->setTitle('poche - ' . $type . ' feed');
|
$feed->setTitle('poche - ' . $type . ' feed');
|
||||||
$feed->setLink(Tools::getPocheUrl());
|
$feed->setLink(Tools::getPocheUrl());
|
||||||
$feed->setChannelElement('updated', date(DATE_ATOM , time()));
|
$feed->setChannelElement('updated', date(DATE_RSS , time()));
|
||||||
$feed->setChannelElement('author', 'poche');
|
$feed->setChannelElement('author', 'poche');
|
||||||
|
|
||||||
$entries = $this->store->getEntriesByView($type, $user_id);
|
$entries = $this->store->getEntriesByView($type, $user_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user