fallback to url if we have not got an addr

This commit is contained in:
Mario Vavti 2018-12-02 11:38:13 +01:00
parent f083c0cba1
commit a3ba7f0788

View File

@ -828,7 +828,7 @@ class Enotify {
$x = array( $x = array(
'notify_link' => $item['llink'], 'notify_link' => $item['llink'],
'name' => $item['author']['xchan_name'], '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'], 'url' => $item['author']['xchan_url'],
'photo' => $item['author']['xchan_photo_s'], 'photo' => $item['author']['xchan_photo_s'],
'when' => relative_date(($edit)? $item['edited'] : $item['created']), 'when' => relative_date(($edit)? $item['edited'] : $item['created']),