]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/af_buttersafe/init.php
prevent article filters from modifying article GUID; add separate plugin_data field...
[tt-rss.git] / plugins / af_buttersafe / init.php
index 2b42795012bdf497c43df94d5f107a5705221b8b..0715be3aaa930addf623cf4fda515dbeba621675 100644 (file)
@@ -21,7 +21,7 @@ class Af_Buttersafe extends Plugin {
                $owner_uid = $article["owner_uid"];
 
                if (strpos($article["guid"], "buttersafe.com") !== FALSE &&
-                               strpos($article["guid"], "buttersafe,$owner_uid:") === FALSE) {
+                               strpos($article["plugin_data"], "buttersafe,$owner_uid:") === FALSE) {
 
                        $doc = new DOMDocument();
                        @$doc->loadHTML(fetch_file_contents($article["link"]));
@@ -48,7 +48,7 @@ class Af_Buttersafe extends Plugin {
                                }
                        }
 
-                       $article["guid"] = "buttersafe,$owner_uid:" . $article["guid"];
+                       $article["plugin_data"] = "buttersafe,$owner_uid:" . $article["plugin_data"];
                }
 
                return $article;