diff options
author | Mario <mario@mariovavti.com> | 2025-03-28 13:31:47 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-03-28 13:31:47 +0000 |
commit | 295d5f06dcd6cecfd08304c4b77612f6a9644c52 (patch) | |
tree | db4ec729de6a948c683efa99b79d457f6ead2fef | |
parent | 362be52be017cc8d0fbe4aa550846c64a93f2183 (diff) | |
download | volse-hubzilla-295d5f06dcd6cecfd08304c4b77612f6a9644c52.tar.gz volse-hubzilla-295d5f06dcd6cecfd08304c4b77612f6a9644c52.tar.bz2 volse-hubzilla-295d5f06dcd6cecfd08304c4b77612f6a9644c52.zip |
lazy load profile images for likes and remove zid function for the profile image src attribute
(cherry picked from commit 30d552255e10a94111cfbe896e934172de994cb1)
Co-authored-by: Mario <mario@mariovavti.com>
-rw-r--r-- | include/conversation.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php index a9dd8373a..6dfefa707 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1008,7 +1008,7 @@ function builtin_activity_puller($item, &$conv_responses) { $moderate = ((intval($item['item_blocked']) === ITEM_MODERATED) ? '<a href="moderate/' . $item['id'] . '/approve" onclick="moderate_approve(' . $item['id'] . '); return false;" class="text-success pe-2" title="' . t('Approve this item') . '"><i class="bi bi-check-lg" ></i></a><a href="moderate/' . $item['id'] . '/drop" onclick="moderate_drop(' . $item['id'] . '); return false;" class="text-danger pe-2" title="' . t('Delete this item') . '"><i class="bi bi-trash" ></i></a>' : ''); $url = (($item['author_xchan'] && $item['author']['xchan_photo_s']) - ? '<div class="dropdown-item">' . $moderate . '<a href="' . chanlink_hash($item['author_xchan']) . '" class="text-reset">' . '<img class="menu-img-1" src="' . zid($item['author']['xchan_photo_s']) . '" alt="' . urlencode($name) . '" /> ' . $name . '</a></div>' + ? '<div class="dropdown-item">' . $moderate . '<a href="' . chanlink_hash($item['author_xchan']) . '" class="text-reset">' . '<img class="menu-img-1" src="' . $item['author']['xchan_photo_s'] . '" alt="' . urlencode($name) . '" loading="lazy" /> ' . $name . '</a></div>' : '<a class="dropdown-item" href="#" class="disabled">' . $name . '</a>' ); |