aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-07 21:49:50 -0700
committerMario Vavti <mario@mariovavti.com>2017-06-08 10:26:43 +0200
commit3563568f6f965c755323a233a99a60e3b0b85102 (patch)
tree6b055d5fdf4d3fe62b596c38dbf64f6811467ad8
parent912be5a792b286f844a2c933fd5f7775a34887a4 (diff)
downloadvolse-hubzilla-3563568f6f965c755323a233a99a60e3b0b85102.tar.gz
volse-hubzilla-3563568f6f965c755323a233a99a60e3b0b85102.tar.bz2
volse-hubzilla-3563568f6f965c755323a233a99a60e3b0b85102.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 708532013..f1cee4194 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);