mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 08:25:57 +00:00
prevent article filters from modifying article GUID; add separate plugin_data field for this
This commit is contained in:
@@ -21,7 +21,7 @@ class Af_Explosm extends Plugin {
|
||||
$owner_uid = $article["owner_uid"];
|
||||
|
||||
if (strpos($article["link"], "explosm.net/comics") !== FALSE &&
|
||||
strpos($article["guid"], "explosm,$owner_uid:") === FALSE) {
|
||||
strpos($article["plugin_data"], "explosm,$owner_uid:") === FALSE) {
|
||||
|
||||
$doc = new DOMDocument();
|
||||
@$doc->loadHTML(fetch_file_contents($article["link"]));
|
||||
@@ -48,7 +48,7 @@ class Af_Explosm extends Plugin {
|
||||
}
|
||||
}
|
||||
|
||||
$article["guid"] = "explosm,$owner_uid:" . $article["guid"];
|
||||
$article["plugin_data"] = "explosm,$owner_uid:" . $article["plugin_data"];
|
||||
}
|
||||
|
||||
return $article;
|
||||
|
||||
Reference in New Issue
Block a user