Move 'IVirtualFeed' checks into 'PluginHost::get_feed_handler()'.

This commit is contained in:
wn_
2024-11-12 03:49:58 +00:00
parent dca2ae60a1
commit 5a200755b8
4 changed files with 16 additions and 17 deletions

View File

@@ -693,9 +693,7 @@ class API extends Handler {
$handler = PluginHost::getInstance()->get_feed_handler($pfeed_id);
if ($handler && implements_interface($handler, 'IVirtualFeed')) {
/** @var Plugin&IVirtualFeed $handler */
if ($handler) {
$params = array(
"feed" => $feed_id,
"limit" => $limit,