]> git.mxchange.org Git - friendica.git/blobdiff - include/conversation.php
more enotify
[friendica.git] / include / conversation.php
index 20baf7dc5fed773aec893f70cc05e9502ad9ba4d..fae57c5655a76352c0835204ca95961508ba6400 100644 (file)
@@ -208,8 +208,11 @@ function conversation(&$a, $items, $mode, $update) {
                                }
                                else
                                        $nickname = $a->user['nickname'];
+                               
                        
                                $profile_name   = ((strlen($item['author-name']))   ? $item['author-name']   : $item['name']);
+                               if($item['author-link'] && (! $item['author-name']))
+                                       $profile_name = $item['author-link'];
 
                                $sp = false;
                                $profile_link = best_link_url($item,$sp);
@@ -291,7 +294,7 @@ function conversation(&$a, $items, $mode, $update) {
                                $arr = array('item' => $item, 'output' => $tmp_item);
                                call_hooks('display_item', $arr);
 
-                               $threads[$threadsid]['id'] = $arr[$item['item_id']];
+                               $threads[$threadsid]['id'] = $item['item_id'];
                                $threads[$threadsid]['html'] .= $arr['output'];
 
                        }
@@ -530,6 +533,10 @@ function conversation(&$a, $items, $mode, $update) {
 
                                $profile_name   = (((strlen($item['author-name']))   && $diff_author) ? $item['author-name']   : $item['name']);
 
+                               if($item['author-link'] && (! $item['author-name']))
+                                       $profile_name = $item['author-link'];
+
+
                                $sp = false;
                                $profile_link = best_link_url($item,$sp);
                                if($sp)