From 6930c4e23b8b24f7436c0e265d751460bed9b1d2 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 1 Mar 2022 20:06:10 +0000 Subject: fix feedutils regression --- include/feedutils.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/feedutils.php b/include/feedutils.php index fbd97b598..734018922 100644 --- a/include/feedutils.php +++ b/include/feedutils.php @@ -1355,7 +1355,7 @@ function consume_feed($xml, $importer, &$contact, $pass = 0) { } } - if(! post_is_importable($importer['channel_id'], $datarray, $contact)) + if(! post_is_importable($importer['channel_id'], $datarray, [$contact])) continue; $datarray['parent_mid'] = $datarray['mid']; @@ -1511,7 +1511,7 @@ function consume_feed($xml, $importer, &$contact, $pass = 0) { } } - if(! post_is_importable($importer['channel_id'], $datarray, $contact)) + if(! post_is_importable($importer['channel_id'], $datarray, [$contact])) continue; logger('author: ' . print_r($author, true), LOGGER_DEBUG); @@ -1766,8 +1766,8 @@ function handle_feed($uid, $abook_id, $url) { //logger('data:' . print_r($z, true), LOGGER_DATA); if($z['success']) { - consume_feed($z['body'], $channel, $x, 1); - consume_feed($z['body'], $channel, $x, 2); + consume_feed($z['body'], $channel, $x[0], 1); + consume_feed($z['body'], $channel, $x[0], 2); return true; } -- cgit v1.2.3