Changeset b258a79 in Klonkt for src/views/partials/tl-item.ejs
- Timestamp:
- 07/28/2026 07:53:36 AM (6 weeks ago)
- Branches:
- main
- Children:
- 0101d0a
- Parents:
- fc40410
- File:
-
- 1 edited
-
src/views/partials/tl-item.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/partials/tl-item.ejs
rfc40410 rb258a79 23 23 <div class="tl-content"><%- emojiHtml(p.content, p.emoji_json) %></div> 24 24 <% } %> 25 <% var _quote = noteQuote(p.quote_json); if (_quote) { %><%- include('../partials/quote-card', { q: _quote }) %><% } %> 25 <% 26 // One card for both: a fediverse quote and an external embed look 27 // identical; only where they came from differs. An embed carries a 28 // title and a thumbnail, never an iframe. 29 var _quote = noteQuote(p.quote_json); 30 if (!_quote) { 31 var _emb = noteQuote(p.embed_json); 32 // The title comes from a third-party oEmbed provider, so it is 33 // escaped here: the quote card renders `content` as HTML (fine for 34 // AP content, which we sanitise on the way in, but not for this). 35 if (_emb) _quote = { url: _emb.url, author: _emb.author || (_emb.provider ? { name: _emb.provider } : null), 36 content: _emb.title ? ('<p>' + emojiName(_emb.title, null) + '</p>') : '', media: _emb.media || [] }; 37 } 38 %> 39 <% if (_quote) { %><%- include('../partials/quote-card', { q: _quote }) %><% } %> 26 40 <% if (_nsfwVisual) { %><div class="nsfw-media"><% } %> 27 41 <% if (imgs.length) { %>
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)