aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-11-02 10:38:40 +0100
committerMario Vavti <mario@mariovavti.com>2022-11-02 10:38:40 +0100
commit1cf659033b376026aecaec7951c743f78c2b0511 (patch)
tree184de643558c6b445e1aa495378013f0493bfbbe /Zotlabs/Widget
parent3dc552769055d7c6cefd8f4779fff1c9f123bf16 (diff)
downloadvolse-hubzilla-1cf659033b376026aecaec7951c743f78c2b0511.tar.gz
volse-hubzilla-1cf659033b376026aecaec7951c743f78c2b0511.tar.bz2
volse-hubzilla-1cf659033b376026aecaec7951c743f78c2b0511.zip
set hubloc_connected in mod fhublocs otherwise the hublocs might be removed by prune_hub_reinstalls()
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r--Zotlabs/Widget/Messages.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Widget/Messages.php b/Zotlabs/Widget/Messages.php
index 267467bb0..38c822502 100644
--- a/Zotlabs/Widget/Messages.php
+++ b/Zotlabs/Widget/Messages.php
@@ -148,7 +148,7 @@ class Messages {
}
$entries[$i]['author_name'] = $item['author']['xchan_name'];
- $entries[$i]['author_addr'] = (($item['author']['xchan_addr']) ? $item['author']['xchan_addr'] : $item['author']['xchan_url']);
+ $entries[$i]['author_addr'] = $item['author']['xchan_addr'] ?? $item['author']['xchan_url'];
$entries[$i]['info'] = $info;
$entries[$i]['created'] = datetime_convert('UTC', date_default_timezone_get(), $item['created']);
$entries[$i]['summary'] = $summary;