mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 04:05:58 +00:00
plugins: remove obsolete plugin_data/stored stuff
This commit is contained in:
@@ -17,7 +17,6 @@ class Af_Habr extends Plugin {
|
||||
$owner_uid = $article["owner_uid"];
|
||||
|
||||
if (strpos($article["link"], "habrahabr.ru") !== FALSE) {
|
||||
if (strpos($article["plugin_data"], "af_habr,$owner_uid:") === FALSE) {
|
||||
|
||||
$doc = new DOMDocument();
|
||||
@$doc->loadHTML(fetch_file_contents($article["link"]));
|
||||
@@ -31,12 +30,8 @@ class Af_Habr extends Plugin {
|
||||
|
||||
if ($basenode) {
|
||||
$article["content"] = $doc->saveXML($basenode);
|
||||
$article["plugin_data"] = "af_habr,$owner_uid:" . $article["plugin_data"];
|
||||
}
|
||||
}
|
||||
} else if (isset($article["stored"]["content"])) {
|
||||
$article["content"] = $article["stored"]["content"];
|
||||
}
|
||||
}
|
||||
|
||||
return $article;
|
||||
|
||||
Reference in New Issue
Block a user