Browse Source

Don't update the feed URL when fetching

This can result in some unpredictable constraint violations
tags/0.8.1
J. King 4 months ago
parent
commit
cfef75ccba
2 changed files with 2 additions and 3 deletions
  1. 1
    0
      CHANGELOG
  2. 1
    3
      lib/Database.php

+ 1
- 0
CHANGELOG View File

@@ -3,6 +3,7 @@ Version 0.8.1 (2019-??-??)

Bug fixes:
- Don't crash updating feeds cached solely via ETag
- Don't update feed URLs when fetching

Version 0.8.0 (2019-07-26)
==========================

+ 1
- 3
lib/Database.php View File

@@ -1152,8 +1152,7 @@ class Database {
}
// lastly update the feed database itself with updated information.
$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 = ?",
'str',
"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',
@@ -1163,7 +1162,6 @@ class Database {
'int',
'int'
)->run(
$feed->data->feedUrl,
$feed->data->title,
$feed->favicon,
$feed->data->siteUrl,

Loading…
Cancel
Save