aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-07 21:49:50 -0700
committerzotlabs <mike@macgirvin.com>2017-06-07 21:49:50 -0700
commit005baea319585299b8d12eb0b4707f44711c5210 (patch)
treea919abef3b62a6891e2759d258b0f171bb574d1c
parent4f3b1edf9d05830a6851f4b6570b8a0ec836b6ab (diff)
downloadvolse-hubzilla-005baea319585299b8d12eb0b4707f44711c5210.tar.gz
volse-hubzilla-005baea319585299b8d12eb0b4707f44711c5210.tar.bz2
volse-hubzilla-005baea319585299b8d12eb0b4707f44711c5210.zip
fall back on feed logo if an author avatar cannot be found
-rw-r--r--include/feedutils.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index 10eb5bcc7..c530b7be7 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -1185,6 +1185,10 @@ function feed_meta($xml) {
}
}
+ if(! $author['author_photo'])
+ $author['author_photo'] = $feed->get_image_url();
+
+
if(substr($author['author_link'],-1,1) == '/')
$author['author_link'] = substr($author['author_link'],0,-1);