]> git.wh0rd.org Git - tt-rss.git/commitdiff
properly load user plugins and data on update
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 30 Dec 2012 07:31:34 +0000 (11:31 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 30 Dec 2012 07:33:13 +0000 (11:33 +0400)
include/rssfuncs.php

index e0119bd3e8ae3d8c8e13015d70a6529ecea5f2ae..bd583bbf0fd62f6787e2438220b11db6850f7cd8 100644 (file)
                        $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);
 
                                        _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,
                                        "author" => $entry_author);
 
                                foreach ($pluginhost->get_hooks($pluginhost::HOOK_ARTICLE_FILTER) as $plugin) {
+
                                        $article = $plugin->hook_article_filter($article);
                                }