From e12f375624d980702e0ae81cdd161c77ccd527ca Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 13 Oct 2020 07:25:33 +0000 Subject: return if author or owner is missing and add more logging --- Zotlabs/Lib/Activity.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'Zotlabs/Lib/Activity.php') diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 4886f9239..6d12f7ea1 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -2499,11 +2499,17 @@ class Activity { $item['author_xchan'] = self::find_best_identity($item['author_xchan']); $item['owner_xchan'] = self::find_best_identity($item['owner_xchan']); - if(! ( $item['author_xchan'] && $item['owner_xchan'])) { - logger('owner or author missing.'); - return; + if(!$item['author_xchan']) { + logger('No author: ' . print_r($act, true)); } + if(!$item['owner_xchan']) { + logger('No owner: ' . print_r($act, true)); + } + + if(!$item['author_xchan'] || !$item['owner_xchan']) + return; + if($channel['channel_system']) { if(! MessageFilter::evaluate($item,get_config('system','pubstream_incl'),get_config('system','pubstream_excl'))) { logger('post is filtered'); @@ -2699,6 +2705,7 @@ class Activity { static public function fetch_and_store_replies($channel, $arr) { logger('fetching replies'); + logger(print_r($arr,true)); $p = []; -- cgit v1.2.3