summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorwltb <[email protected]>2014-05-17 17:51:35 +0200
committerwltb <[email protected]>2014-05-19 14:06:52 +0200
commit01465325b48270e5eee5db94c6178ba6d567ddf7 (patch)
tree04818e173e3c5b7ebf26aba9c6472550f1170f1a /include
parenta283bf26438199e415fcebb2ee0b8b72b0db51cf (diff)
Add subscribe hook, give more information to fetch_feed hook
Diffstat (limited to 'include')
-rw-r--r--include/functions.php4
-rw-r--r--include/rssfuncs.php2
2 files changed, 5 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index 01d8d47f8..2e76f157b 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -1687,6 +1687,10 @@
return array("code" => 5, "message" => $fetch_last_error);
}
+ foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_SUBSCRIBE_FEED) as $plugin) {
+ $contents = $plugin->hook_subscribe_feed($contents, $url, $auth_login, $auth_pass);
+ }
+
if (is_html($contents)) {
$feedUrls = get_feeds_from_html($url, $contents);
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 15f1df0cc..010071e57 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -268,7 +268,7 @@
$force_refetch = isset($_REQUEST["force_refetch"]);
foreach ($pluginhost->get_hooks(PluginHost::HOOK_FETCH_FEED) as $plugin) {
- $feed_data = $plugin->hook_fetch_feed($feed_data, $fetch_url, $owner_uid, $feed);
+ $feed_data = $plugin->hook_fetch_feed($feed_data, $fetch_url, $owner_uid, $feed, $last_article_timestamp, $auth_login, $auth_pass);
}
// try cache