aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-05-02 12:58:24 +0200
committerMario Vavti <mario@mariovavti.com>2019-05-02 12:58:24 +0200
commitb6d598a0018301c47ae42340962720a7b5247e4a (patch)
tree5632f29b0fe929fb8e477862560e46b0b7992061 /Zotlabs/Lib
parent516167c0f8579c8a068b6e52557e7e1109f897ae (diff)
downloadvolse-hubzilla-b6d598a0018301c47ae42340962720a7b5247e4a.tar.gz
volse-hubzilla-b6d598a0018301c47ae42340962720a7b5247e4a.tar.bz2
volse-hubzilla-b6d598a0018301c47ae42340962720a7b5247e4a.zip
provide xchan_url if there is no xchan_addr
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/ThreadItem.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index 7a3a7c0c5..0fdbc9123 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -373,7 +373,7 @@ class ThreadItem {
'id' => $this->get_id(),
'mid' => $item['mid'],
'parent' => $item['parent'],
- 'author_id' => $item['author']['xchan_addr'],
+ 'author_id' => (($item['author']['xchan_addr']) ? $item['author']['xchan_addr'] : $item['author']['xchan_url']),
'isevent' => $isevent,
'attend' => $attend,
'consensus' => $consensus,