diff options
| author | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2013-02-21 22:24:06 +0400 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2013-02-21 22:24:06 +0400 |
| commit | b30abdadd2f7d846d40eaa2ddb6343291df30a91 (patch) | |
| tree | ad8e38539aa85fcddbe2cbb86254b13d0139560f /plugins/af_explosm | |
| parent | 7bfb3dabdd5cca802b73b473e8f49a2f0952852f (diff) | |
prevent article filters from modifying article GUID; add separate plugin_data field for this
Diffstat (limited to 'plugins/af_explosm')
| -rw-r--r-- | plugins/af_explosm/init.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/af_explosm/init.php b/plugins/af_explosm/init.php index cd6efb2ee..b848bb0fb 100644 --- a/plugins/af_explosm/init.php +++ b/plugins/af_explosm/init.php @@ -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; |