aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-12-04 03:45:09 -0800
committerfriendica <info@friendica.com>2011-12-04 03:45:09 -0800
commitf6dd834284ccf8e69af8cefce45046a64460aa62 (patch)
treeb3be9cf5c6b60213c02c8faf808eb6df33448e54
parent8a489b47624a7d5dc36b2e5b5ac820adbe52841c (diff)
downloadvolse-hubzilla-f6dd834284ccf8e69af8cefce45046a64460aa62.tar.gz
volse-hubzilla-f6dd834284ccf8e69af8cefce45046a64460aa62.tar.bz2
volse-hubzilla-f6dd834284ccf8e69af8cefce45046a64460aa62.zip
fix author-name when missing on comments
-rw-r--r--include/conversation.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 20baf7dc5..78b3987a3 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -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($author-link && (! $author-name))
+ $profile-name = $author-link;
$sp = false;
$profile_link = best_link_url($item,$sp);