mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2025-01-03 14:32:40 +00:00
Fix adding a subscription (again)
Also ensured HTTP last modified date is parsed properly.
This commit is contained in:
parent
e6f2f22888
commit
818707b067
2 changed files with 2 additions and 2 deletions
|
@ -418,7 +418,7 @@ class Database {
|
|||
$feed->favicon,
|
||||
$feed->data->siteUrl,
|
||||
$feed->data->date,
|
||||
$feed->resource->getLastModified(),
|
||||
\DateTime::createFromFormat("!D, d M Y H:i:s e", $feed->resource->getLastModified()),
|
||||
$feed->resource->getEtag(),
|
||||
$fetchUser,
|
||||
$fetchPassword
|
||||
|
|
|
@ -38,7 +38,7 @@ class Feed {
|
|||
// Grab the favicon for the feed; returns an empty string if it cannot find one.
|
||||
// Some feeds might use a different domain (eg: feedburner), so the site url is
|
||||
// used instead of the feed's url.
|
||||
$this->favicon = (new Favicon)->find($siteUrl);
|
||||
$this->favicon = (new Favicon)->find($feed->siteUrl);
|
||||
} catch (PicoFeedException $e) {
|
||||
throw new Feed\Exception($url, $e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue