mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 10:05:56 +00:00
rewrite some more hooks
This commit is contained in:
@@ -1586,12 +1586,9 @@ class Pref_Feeds extends Handler_Protected {
|
||||
}
|
||||
|
||||
static function remove_feed($id, $owner_uid) {
|
||||
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_UNSUBSCRIBE_FEED) as $p) {
|
||||
if (! $p->hook_unsubscribe_feed($id, $owner_uid)) {
|
||||
user_error("Feed $id (owner: $owner_uid) not removed due to plugin error (HOOK_UNSUBSCRIBE_FEED).", E_USER_WARNING);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (PluginHost::getInstance()->run_hooks_until(PluginHost::HOOK_UNSUBSCRIBE_FEED, true, $id, $owner_uid))
|
||||
return;
|
||||
|
||||
$pdo = Db::pdo();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user