]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/af_explosm/init.php
prevent article filters from modifying article GUID; add separate plugin_data field...
[tt-rss.git] / plugins / af_explosm / init.php
index cd6efb2eecb9a96e9dcbc524e337f8182562b166..b848bb0fbfbd08e1b97a39f4060c8affc9ca879c 100644 (file)
@@ -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;