]> git.mxchange.org Git - friendica.git/commitdiff
wrong author came from feed, not from FB
authorFriendika <info@friendika.com>
Sat, 14 May 2011 13:16:21 +0000 (06:16 -0700)
committerFriendika <info@friendika.com>
Sat, 14 May 2011 13:16:21 +0000 (06:16 -0700)
include/items.php

index 6f15b6814b9a73377dbd33aec49160c888440482..8c2c78696c57fba346fdf7b9b9da950920602f79 100644 (file)
@@ -1530,7 +1530,7 @@ function atom_entry($item,$type,$author,$owner,$comment = false) {
        if(is_array($author))
                $o .= atom_author('author',$author['name'],$author['url'],80,80,$author['thumb']);
        else
-               $o .= atom_author('author',$item['name'],$item['url'],80,80,$item['thumb']);
+               $o .= atom_author('author',(($item['author-name']) ? $item['author-name'] : $item['name']),(($item['author-link']) ? $item['author-link'] : $item['url']),80,80,(($item['author-avatar']) ? $item['author-avatar'] : $item['thumb']));
        if(strlen($item['owner-name']))
                $o .= atom_author('dfrn:owner',$item['owner-name'],$item['owner-link'],80,80,$item['owner-avatar']);