diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-12-02 10:38:13 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-12-02 11:39:04 +0100 |
commit | 237c6eed5024d2507630f2321218685b3540c957 (patch) | |
tree | 58bface4faa5ea83146a31bb4e70c3e950415856 /Zotlabs/Lib/Enotify.php | |
parent | f13b1e8604746d9e3269f1678ca7ed6d1e7c5b6f (diff) | |
download | volse-hubzilla-237c6eed5024d2507630f2321218685b3540c957.tar.gz volse-hubzilla-237c6eed5024d2507630f2321218685b3540c957.tar.bz2 volse-hubzilla-237c6eed5024d2507630f2321218685b3540c957.zip |
fallback to url if we have not got an addr
(cherry picked from commit a3ba7f0788705a6ebee57433e80712b282b0e784)
Diffstat (limited to 'Zotlabs/Lib/Enotify.php')
-rw-r--r-- | Zotlabs/Lib/Enotify.php | 2 |
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']), |