aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-09-13 11:20:35 +0000
committerMario <mario@mariovavti.com>2022-09-13 11:20:35 +0000
commit96535ee4df967f04d4cc6c3b7f9ab335a50f543d (patch)
tree484208b83263850a4914d77e2842c214f488b17b /include
parentb55f314d7ee1c1cc00f13a8602a56780e1db71ae (diff)
downloadvolse-hubzilla-96535ee4df967f04d4cc6c3b7f9ab335a50f543d.tar.gz
volse-hubzilla-96535ee4df967f04d4cc6c3b7f9ab335a50f543d.tar.bz2
volse-hubzilla-96535ee4df967f04d4cc6c3b7f9ab335a50f543d.zip
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
Diffstat (limited to 'include')
-rw-r--r--include/feedutils.php7
1 files changed, 2 insertions, 5 deletions
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());