mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-31 21:12:41 +00:00
Don't update the feed URL when fetching
This can result in some unpredictable constraint violations
This commit is contained in:
parent
b8b559b0f8
commit
cfef75ccba
2 changed files with 2 additions and 3 deletions
|
@ -3,6 +3,7 @@ Version 0.8.1 (2019-??-??)
|
||||||
|
|
||||||
Bug fixes:
|
Bug fixes:
|
||||||
- Don't crash updating feeds cached solely via ETag
|
- Don't crash updating feeds cached solely via ETag
|
||||||
|
- Don't update feed URLs when fetching
|
||||||
|
|
||||||
Version 0.8.0 (2019-07-26)
|
Version 0.8.0 (2019-07-26)
|
||||||
==========================
|
==========================
|
||||||
|
|
|
@ -1152,8 +1152,7 @@ class Database {
|
||||||
}
|
}
|
||||||
// lastly update the feed database itself with updated information.
|
// lastly update the feed database itself with updated information.
|
||||||
$this->db->prepare(
|
$this->db->prepare(
|
||||||
"UPDATE arsse_feeds SET url = ?, title = ?, favicon = ?, source = ?, updated = CURRENT_TIMESTAMP, modified = ?, etag = ?, err_count = 0, err_msg = '', next_fetch = ?, size = ? WHERE id = ?",
|
"UPDATE arsse_feeds SET title = ?, favicon = ?, source = ?, updated = CURRENT_TIMESTAMP, modified = ?, etag = ?, err_count = 0, err_msg = '', next_fetch = ?, size = ? WHERE id = ?",
|
||||||
'str',
|
|
||||||
'str',
|
'str',
|
||||||
'str',
|
'str',
|
||||||
'str',
|
'str',
|
||||||
|
@ -1163,7 +1162,6 @@ class Database {
|
||||||
'int',
|
'int',
|
||||||
'int'
|
'int'
|
||||||
)->run(
|
)->run(
|
||||||
$feed->data->feedUrl,
|
|
||||||
$feed->data->title,
|
$feed->data->title,
|
||||||
$feed->favicon,
|
$feed->favicon,
|
||||||
$feed->data->siteUrl,
|
$feed->data->siteUrl,
|
||||||
|
|
Loading…
Reference in a new issue