]> git.mxchange.org Git - friendica.git/commitdiff
she'll be right
authorFriendika <info@friendika.com>
Mon, 22 Nov 2010 01:44:59 +0000 (17:44 -0800)
committerFriendika <info@friendika.com>
Mon, 22 Nov 2010 01:44:59 +0000 (17:44 -0800)
mod/display.php
mod/network.php

index e9d1bbbb1483013bd34d600de1a6204ab1da2ef3..af121abdb21eb45f9b8129b5333186d2861b0f48 100644 (file)
@@ -211,8 +211,11 @@ function display_content(&$a) {
                                }
                        }
 
-                       $profile_name = ((strlen($item['author-name'])) ? $item['author-name'] : $item['name']);
-                       $profile_avatar = ((strlen($item['author-avatar'])) ? $item['author-avatar'] : $item['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;
 
                        if(($item['contact-id'] == remote_user()) || ($item['uid'] == local_user()))
index fb4a359840bbbdae343452c4839f452d9bdfdb90..6e781f4fa3df418a53b08afb9a2a5011b7bfc9b2 100644 (file)
@@ -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;