1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:45:56 +00:00

prevent article filters from modifying article GUID; add separate plugin_data field for this

This commit is contained in:
Andrew Dolgov
2013-02-21 22:24:06 +04:00
parent 7bfb3dabdd
commit b30abdadd2
6 changed files with 39 additions and 14 deletions

View File

@@ -26,7 +26,7 @@ class Af_Unburn extends Plugin {
if ((strpos($article["link"], "feedproxy.google.com") !== FALSE ||
strpos($article["link"], "/~r/") !== FALSE ||
strpos($article["link"], "feedsportal.com") !== FALSE) &&
strpos($article["guid"], "unburn,$owner_uid:") === FALSE) {
strpos($article["plugin_data"], "unburn,$owner_uid:") === FALSE) {
$ch = curl_init($article["link"]);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
@@ -62,7 +62,7 @@ class Af_Unburn extends Plugin {
$real_url = preg_replace("/\?$/", "", $real_url);
$article["guid"] = "unburn,$owner_uid:" . $article["guid"];
$article["plugin_data"] = "unburn,$owner_uid:" . $article["plugin_data"];
$article["link"] = $real_url;
}
}