From 96535ee4df967f04d4cc6c3b7f9ab335a50f543d Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 13 Sep 2022 11:20:35 +0000 Subject: make actor_store() fetch the actor object if none is provided, remove announce from the is_response array and provide a function to find the attributedTo url --- include/feedutils.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/feedutils.php b/include/feedutils.php index 33bacc2bb..814e9c163 100644 --- a/include/feedutils.php +++ b/include/feedutils.php @@ -271,11 +271,8 @@ function get_atom_author($feed, $item) { $found_author = $item->get_author(); if($found_author) { $rawauthor = $feed->get_feed_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'author'); - hz_syslog('rawauthor: ' . print_r($rawauthor, true)); - - if($rawauthor) { - if(isset($rawauthor[0]['child'][NAMESPACE_POCO]['displayName'][0]['data'])) - $author['full_name'] = unxmlify($rawauthor[0]['child'][NAMESPACE_POCO]['displayName'][0]['data']); + if(isset($rawauthor[0]['child'][NAMESPACE_POCO]['displayName'][0]['data'])) { + $author['full_name'] = unxmlify($rawauthor[0]['child'][NAMESPACE_POCO]['displayName'][0]['data']); } $author['author_name'] = unxmlify($found_author->get_name()); -- cgit v1.2.3