mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:15:56 +00:00
pass feed it to feed_fetched and fetch_feed hooks
This commit is contained in:
@@ -275,7 +275,7 @@
|
|||||||
if (!$rss) {
|
if (!$rss) {
|
||||||
|
|
||||||
foreach ($pluginhost->get_hooks(PluginHost::HOOK_FETCH_FEED) as $plugin) {
|
foreach ($pluginhost->get_hooks(PluginHost::HOOK_FETCH_FEED) as $plugin) {
|
||||||
$feed_data = $plugin->hook_fetch_feed($feed_data, $fetch_url, $owner_uid);
|
$feed_data = $plugin->hook_fetch_feed($feed_data, $fetch_url, $owner_uid, $feed);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$feed_data) {
|
if (!$feed_data) {
|
||||||
@@ -342,7 +342,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach ($pluginhost->get_hooks(PluginHost::HOOK_FEED_FETCHED) as $plugin) {
|
foreach ($pluginhost->get_hooks(PluginHost::HOOK_FEED_FETCHED) as $plugin) {
|
||||||
$feed_data = $plugin->hook_feed_fetched($feed_data, $fetch_url, $owner_uid);
|
$feed_data = $plugin->hook_feed_fetched($feed_data, $fetch_url, $owner_uid, $feed);
|
||||||
}
|
}
|
||||||
|
|
||||||
// set last update to now so if anything *simplepie* crashes later we won't be
|
// set last update to now so if anything *simplepie* crashes later we won't be
|
||||||
|
|||||||
Reference in New Issue
Block a user