always mangle guid in af_ plugins

This commit is contained in:
Andrew Dolgov 2013-01-10 11:03:55 +04:00
parent 90e13f5b1d
commit 80715caeaa
3 changed files with 6 additions and 12 deletions

View File

@ -45,12 +45,10 @@ class Af_Explosm extends Plugin {
if ($basenode) { if ($basenode) {
$article["content"] = $doc->saveXML($basenode, LIBXML_NOEMPTYTAG); $article["content"] = $doc->saveXML($basenode, LIBXML_NOEMPTYTAG);
// we need to update guid with owner_uid because our local article is different from the one
// other users with this plugin disabled might get
$article["guid"] = "explosm,$owner_uid:" . $article["guid"];
} }
} }
$article["guid"] = "explosm,$owner_uid:" . $article["guid"];
} }
return $article; return $article;

View File

@ -44,12 +44,10 @@ class Af_GoComics extends Plugin {
if ($basenode) { if ($basenode) {
$article["content"] = $doc->saveXML($basenode, LIBXML_NOEMPTYTAG); $article["content"] = $doc->saveXML($basenode, LIBXML_NOEMPTYTAG);
// we need to update guid with owner_uid because our local article is different from the one
// other users with this plugin disabled might get
$article["guid"] = "gocomics,$owner_uid:" . $article["guid"];
} }
} }
$article["guid"] = "gocomics,$owner_uid:" . $article["guid"];
} }
return $article; return $article;

View File

@ -45,12 +45,10 @@ class Af_PennyArcade extends Plugin {
if ($basenode) { if ($basenode) {
$article["content"] = $doc->saveXML($basenode, LIBXML_NOEMPTYTAG); $article["content"] = $doc->saveXML($basenode, LIBXML_NOEMPTYTAG);
// we need to update guid with owner_uid because our local article is different from the one
// other users with this plugin disabled might get
$article["guid"] = "pennyarcade,$owner_uid:" . $article["guid"];
} }
} }
$article["guid"] = "pennyarcade,$owner_uid:" . $article["guid"];
} }
return $article; return $article;