aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-12-02 11:38:13 +0100
committerMario Vavti <mario@mariovavti.com>2018-12-02 11:38:13 +0100
commita3ba7f0788705a6ebee57433e80712b282b0e784 (patch)
treeefaa3935f21939e1a02035451bfa95285f3db42e
parentf083c0cba10248926661db42d99d04b5eb7579e8 (diff)
downloadvolse-hubzilla-a3ba7f0788705a6ebee57433e80712b282b0e784.tar.gz
volse-hubzilla-a3ba7f0788705a6ebee57433e80712b282b0e784.tar.bz2
volse-hubzilla-a3ba7f0788705a6ebee57433e80712b282b0e784.zip
fallback to url if we have not got an addr
-rw-r--r--Zotlabs/Lib/Enotify.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php
index 523ccf93a..5e5798cac 100644
--- a/Zotlabs/Lib/Enotify.php
+++ b/Zotlabs/Lib/Enotify.php
@@ -828,7 +828,7 @@ class Enotify {
$x = array(
'notify_link' => $item['llink'],
'name' => $item['author']['xchan_name'],
- 'addr' => $item['author']['xchan_addr'],
+ 'addr' => (($item['author']['xchan_addr']) ? $item['author']['xchan_addr'] : $item['author']['xchan_url']),
'url' => $item['author']['xchan_url'],
'photo' => $item['author']['xchan_photo_s'],
'when' => relative_date(($edit)? $item['edited'] : $item['created']),