diff options
author | Mario <mario@mariovavti.com> | 2023-02-12 10:43:31 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-02-12 10:43:31 +0000 |
commit | a1eb39872ba5017be218d48f319addf3d40ff05d (patch) | |
tree | f80684b9c5a0d66f2a3da425295cc28401320fc1 /Zotlabs/Widget/Messages.php | |
parent | 724b8cc6a54c2e778a2d67b2177ecf373f615c64 (diff) | |
download | volse-hubzilla-a1eb39872ba5017be218d48f319addf3d40ff05d.tar.gz volse-hubzilla-a1eb39872ba5017be218d48f319addf3d40ff05d.tar.bz2 volse-hubzilla-a1eb39872ba5017be218d48f319addf3d40ff05d.zip |
implement hq widget author image and notifications updates
Diffstat (limited to 'Zotlabs/Widget/Messages.php')
-rw-r--r-- | Zotlabs/Widget/Messages.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Widget/Messages.php b/Zotlabs/Widget/Messages.php index 418e49169..a37a178f9 100644 --- a/Zotlabs/Widget/Messages.php +++ b/Zotlabs/Widget/Messages.php @@ -162,7 +162,7 @@ class Messages { $summary = '...'; } else { - $summary = substr_words($summary, 68); + $summary = substr_words($summary, 140); } switch(intval($item['item_private'])) { @@ -178,6 +178,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_img'] = $item['author']['xchan_photo_s']; $entries[$i]['info'] = $info; $entries[$i]['created'] = datetime_convert('UTC', date_default_timezone_get(), $item['created']); $entries[$i]['summary'] = $summary; @@ -282,6 +283,7 @@ class Messages { $entries[$i]['author_name'] = $notice['xname']; $entries[$i]['author_addr'] = $notice['url']; + $entries[$i]['author_img'] = $notice['photo'];// $item['author']['xchan_photo_s']; $entries[$i]['info'] = ''; $entries[$i]['created'] = datetime_convert('UTC', date_default_timezone_get(), $notice['created']); $entries[$i]['summary'] = $summary; |