]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/af_pennyarcade/init.php
prevent article filters from modifying article GUID; add separate plugin_data field...
[tt-rss.git] / plugins / af_pennyarcade / init.php
index e8c623f5eb156008e5c4446504a88cacbbec3762..5ac629914c5f7bd195b0a1688115a75b30897be3 100644 (file)
@@ -21,7 +21,7 @@ class Af_PennyArcade extends Plugin {
                $owner_uid = $article["owner_uid"];
 
                if (strpos($article["link"], "penny-arcade.com") !== FALSE && strpos($article["title"], "Comic:") !== FALSE &&
-                               strpos($article["guid"], "pennyarcade,$owner_uid:") === FALSE) {
+                               strpos($article["plugin_data"], "pennyarcade,$owner_uid:") === FALSE) {
 
                        $doc = new DOMDocument();
                        @$doc->loadHTML(fetch_file_contents($article["link"]));
@@ -48,7 +48,7 @@ class Af_PennyArcade extends Plugin {
                                }
                        }
 
-                       $article["guid"] = "pennyarcade,$owner_uid:" . $article["guid"];
+                       $article["plugin_data"] = "pennyarcade,$owner_uid:" . $article["plugin_data"];
                }
 
                return $article;