Ignore:
Timestamp:
06/28/2026 04:57:19 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
201ec06
Parents:
74c5abc
Message:

feat(images): route all remaining avatars through avatar() (downscaled)

Wrap every avatar/profile-photo <img> src in avatar(): feed/comment/follow + nav, profile
header/sheet/bottom-tab, account, EPK hero, admin user list, site-edit preview. Local avatars
go through the thumb route, remote ones through the signed proxy. Covers (thumb()) untouched.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/partials/profile-header.ejs

    r74c5abc r99989f9  
    4444    <button type="button" class="profile-photo" data-pf-summary aria-label="<%= _displayName || 'Profile' %>">
    4545      <% if (_avatarUrl) { %>
    46         <img src="<%= _avatarUrl %>" alt="">
     46        <img src="<%= avatar(_avatarUrl, 320) %>" alt="">
    4747      <% } else if (site.enable_audio_player && (typeof audioEnabled === 'undefined' || audioEnabled)) { %>
    4848        <span class="profile-photo-fallback profile-photo-fallback--music" aria-hidden="true">
     
    112112    <button type="button" class="pf-summary-close" aria-label="Sluiten">&times;</button>
    113113    <% if (_avatarUrl) { %>
    114       <img class="pf-summary-photo" src="<%= _avatarUrl %>" alt="">
     114      <img class="pf-summary-photo" src="<%= avatar(_avatarUrl, 128) %>" alt="">
    115115    <% } else { %>
    116116      <div class="pf-summary-photo pf-summary-photo--ph" aria-hidden="true">
Note: See TracChangeset for help on using the changeset viewer.