From: Andrew Dolgov Date: Sun, 26 Feb 2006 06:55:34 +0000 (+0100) Subject: fix Opera caching bug X-Git-Tag: schema_freeze_for_1.1.4~43 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b6104dee39262371c75cd617adaeca7a89456a4a;p=tt-rss.git fix Opera caching bug --- diff --git a/functions.php b/functions.php index b6490fac..28b8a7db 100644 --- a/functions.php +++ b/functions.php @@ -355,6 +355,8 @@ $entry_comments = $item["comments"]; + $entry_author = db_escape_string($item['dc']['creator']); + $entry_guid = db_escape_string($entry_guid); $result = db_query($link, "SELECT id FROM ttrss_entries @@ -384,7 +386,8 @@ no_orig_date, date_entered, comments, - num_comments) + num_comments, + author) VALUES ('$entry_title', '$entry_guid', @@ -395,7 +398,8 @@ $no_orig_date, NOW(), '$entry_comments', - '$num_comments')"); + '$num_comments', + '$entry_author')"); } else { // we keep encountering the entry in feeds, so we need to // update date_entered column so that we don't get horrible diff --git a/tt-rss.js b/tt-rss.js index 2a7566a5..3e5ad3a1 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -185,7 +185,7 @@ function scheduleFeedUpdate(force) { var omode; - if (firsttime_update) { + if (firsttime_update && !navigator.userAgent.match("Opera")) { firsttime_update = false; omode = "T"; } else {