Changeset a7bcf66 in Klonkt for src/routes/guardian.js
- Timestamp:
- 07/28/2026 06:30:43 PM (6 weeks ago)
- Branches:
- main
- Children:
- 70677e96
- Parents:
- d9ad6c5
- File:
-
- 1 edited
-
src/routes/guardian.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/guardian.js
rd9ad6c5 ra7bcf66 19 19 import * as Guardianship from '../services/guardianship/index.js'; 20 20 import { t as i18nT, resolveLang } from '../services/i18n.js'; 21 import { injectCspNonce, renderNoteBody } from '../middleware/render.js';21 import { injectCspNonce, renderNoteBody, formatDateTime } from '../middleware/render.js'; 22 22 import { emojiName } from '../services/NoteRender.js'; 23 23 … … 62 62 body_html: renderNoteBody(h, L), 63 63 name_html: emojiName(h.actor_name || '', h.actor_emoji_json), 64 // In the site's own timezone, the same as everywhere else in Klonkt. The 65 // PWA used to slice the raw UTC string, so a 20:20 call for help read 18:20. 66 when_text: formatDateTime(h.published || h.created_at), 64 67 })); 65 68 return { … … 141 144 url: p.url, 142 145 published: p.published || p.created_at, 146 when_text: formatDateTime(p.published || p.created_at), 143 147 cw: p.cw || null, 144 148 media: p.media_json ? JSON.parse(p.media_json) : [],
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)