aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-05-02 13:05:52 +0200
committerMario Vavti <mario@mariovavti.com>2019-05-02 13:05:52 +0200
commit746d032e5801f14427e3eafde7cee08e3ca56cb4 (patch)
treea1df95707c02e51869b2d8e6438e60a28471c5bc
parentb6d598a0018301c47ae42340962720a7b5247e4a (diff)
downloadvolse-hubzilla-746d032e5801f14427e3eafde7cee08e3ca56cb4.tar.gz
volse-hubzilla-746d032e5801f14427e3eafde7cee08e3ca56cb4.tar.bz2
volse-hubzilla-746d032e5801f14427e3eafde7cee08e3ca56cb4.zip
more provide xchan_url if there is no xchan_addr
-rw-r--r--Zotlabs/Lib/ThreadItem.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index 0fdbc9123..f9d0d0a15 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -379,8 +379,8 @@ class ThreadItem {
'consensus' => $consensus,
'conlabels' => $conlabels,
'canvote' => $canvote,
- 'linktitle' => sprintf( t('View %s\'s profile - %s'), $profile_name, $item['author']['xchan_addr']),
- 'olinktitle' => sprintf( t('View %s\'s profile - %s'), $this->get_owner_name(), $item['owner']['xchan_addr']),
+ 'linktitle' => sprintf( t('View %s\'s profile - %s'), $profile_name, (($item['author']['xchan_addr']) ? $item['author']['xchan_addr'] : $item['author']['xchan_url'])),
+ 'olinktitle' => sprintf( t('View %s\'s profile - %s'), $this->get_owner_name(), (($item['owner']['xchan_addr']) ? $item['owner']['xchan_addr'] : $item['owner']['xchan_url'])),
'llink' => $item['llink'],
'viewthread' => $viewthread,
'to' => t('to'),