diff options
author | Andrew Dolgov <[email protected]> | 2012-12-30 11:31:34 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-12-30 11:33:13 +0400 |
commit | 455b1401cdd26ca92a668b767e9205b9e3d9e645 (patch) | |
tree | cc498d4a6f80295f6b6f13e67a10cfdaac6037a6 /include | |
parent | 93f53ffe55081764ae6a94941b8a2a20bebb73ed (diff) |
properly load user plugins and data on update
Diffstat (limited to 'include')
-rw-r--r-- | include/rssfuncs.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php index e0119bd3e..bd583bbf0 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -269,7 +269,8 @@ $pluginhost = new PluginHost($link); $pluginhost->load(PLUGINS, $pluginhost::KIND_ALL); - $pluginhost->load($plugins, $pluginhost::KIND_USER); + $pluginhost->load($user_plugins, $pluginhost::KIND_USER, $owner_uid); + $pluginhost->load_data(); $pluginhost->run_hooks($pluginhost::HOOK_FEED_PARSED, "hook_feed_parsed", $rss); @@ -538,7 +539,8 @@ _debug("update_rss_feed: applying plugin filters.."); } - $article = array("owner_uid" => $owner_uid, + $article = array("owner_uid" => $owner_uid, // read only + "guid" => $entry_guid, // read only "title" => $entry_title, "content" => $entry_content, "link" => $entry_link, @@ -546,6 +548,7 @@ "author" => $entry_author); foreach ($pluginhost->get_hooks($pluginhost::HOOK_ARTICLE_FILTER) as $plugin) { + $article = $plugin->hook_article_filter($article); } |