fallback to url if we have not got an addr

(cherry picked from commit a3ba7f0788)
This commit is contained in:
Mario Vavti 2018-12-02 10:38:13 +00:00 committed by Mario
parent f13b1e8604
commit 237c6eed50

View File

@ -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']),