require virtual feed plugins to implement IVirtualFeed

This commit is contained in:
Andrew Dolgov 2021-11-15 07:11:29 +03:00
parent 3bd13b91c8
commit 676c5787e7
1 changed files with 1 additions and 2 deletions

View File

@ -273,9 +273,8 @@ class Counters {
if (is_array($feeds)) { if (is_array($feeds)) {
foreach ($feeds as $feed) { foreach ($feeds as $feed) {
if (!method_exists($feed['sender'], 'get_unread')) { if (!implements_interface($feed['sender'], 'IVirtualFeed'))
continue; continue;
}
$cv = [ $cv = [
"id" => PluginHost::pfeed_to_feed_id($feed['id']), "id" => PluginHost::pfeed_to_feed_id($feed['id']),