Changeset 52ea6df in Klonkt
- Timestamp:
- 06/24/2026 12:23:05 PM (3 months ago)
- Branches:
- main
- Children:
- 82079ad
- Parents:
- 3a2c9d3
- Location:
- src
- Files:
-
- 2 edited
-
routes/posts.js (modified) (2 diffs)
-
views/pages/post.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/posts.js
r3a2c9d3 r52ea6df 753 753 // Owner/admin of this site may reply back to a fediverse interaction. 754 754 const canManageSite = !!(req.session?.user && PermissionsService.canAdminSite(req.session.user, site)); 755 // Avatar for our own (outbound) fediverse replies = the site's profile photo. 756 const siteAvatar = (site && site.profile_photo) ? site.profile_photo : null; 755 757 756 758 renderPage(req, res, 'pages/post', { … … 763 765 fediverse, 764 766 canManageSite, 767 siteAvatar, 765 768 likeCount, 766 769 likedByMe, -
src/views/pages/post.ejs
r3a2c9d3 r52ea6df 116 116 <% mine.forEach(function(o){ %> 117 117 <li class="comment comment-reply"> 118 <div class="comment-avatar"><span><%= t('fedi.you').charAt(0).toUpperCase() %></span></div> 118 <div class="comment-avatar"> 119 <% if (typeof siteAvatar !== 'undefined' && siteAvatar) { %><img src="<%= siteAvatar %>" alt=""> 120 <% } else { %><span><%= t('fedi.you').charAt(0).toUpperCase() %></span><% } %> 121 </div> 119 122 <div class="comment-body"> 120 123 <div class="comment-meta"><span class="comment-author"><%= t('fedi.you') %></span></div>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)