mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:05:56 +00:00
update stored article after filter has finished processing to prevent plugins from reverting changes of earlier invoked plugins (experimental)
This commit is contained in:
@@ -687,6 +687,12 @@
|
||||
|
||||
foreach ($pluginhost->get_hooks(PluginHost::HOOK_ARTICLE_FILTER) as $plugin) {
|
||||
$article = $plugin->hook_article_filter($article);
|
||||
|
||||
$article["stored"] = array("title" => $article["title"],
|
||||
"content" => $article["content"],
|
||||
"link" => $article["link"],
|
||||
"tags" => $article["tags"],
|
||||
"author" => $article["author"]);
|
||||
}
|
||||
|
||||
$entry_tags = $article["tags"];
|
||||
@@ -697,7 +703,6 @@
|
||||
$entry_plugin_data = db_escape_string($article["plugin_data"]);
|
||||
$entry_content = $article["content"]; // escaped below
|
||||
|
||||
|
||||
_debug("plugin data: $entry_plugin_data", $debug_enabled);
|
||||
|
||||
if ($cache_images && is_writable(CACHE_DIR . '/images'))
|
||||
|
||||
Reference in New Issue
Block a user