From 09117b1dc7a64a8a85a81fc8f6e38f7cadb274bf Mon Sep 17 00:00:00 2001 From: Friendika Date: Sun, 21 Nov 2010 17:44:59 -0800 Subject: she'll be right --- mod/network.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'mod/network.php') diff --git a/mod/network.php b/mod/network.php index fb4a35984..6e781f4fa 100644 --- a/mod/network.php +++ b/mod/network.php @@ -239,10 +239,11 @@ function network_content(&$a, $update = 0) { // Post was remotely authored. -// if((x($item,'author-link')) && ($item['url'] !== $item['author-link'])) { - $profile_name = ((strlen($item['author-name'])) ? $item['author-name'] : $item['name']); - $profile_avatar = ((strlen($item['author-avatar'])) ? $item['author-avatar'] : $thumb); -// } + $diff_author = (($item['url'] !== $item['author-link']) ? true : false); + + $profile_name = (((strlen($item['author-name'])) && $diff_author) ? $item['author-name'] : $item['name']); + $profile_avatar = (((strlen($item['author-avatar'])) && $diff_author) ? $item['author-avatar'] : $thumb); + $profile_link = $profile_url; -- cgit v1.2.3