Changeset 328d837 in Klonkt
- Timestamp:
- 06/29/2026 11:24:30 PM (2 months ago)
- Branches:
- main
- Children:
- 09a2061
- Parents:
- 93b147d
- Location:
- src
- Files:
-
- 1 added
- 2 edited
-
routes/posts.js (modified) (2 diffs)
-
services/MusicMeta.js (added)
-
views/shell.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/posts.js
r93b147d r328d837 19 19 import { toWebp } from '../services/ImageWebpService.js'; 20 20 import ActivityPubService from '../services/ActivityPubService.js'; 21 import MusicMeta from '../services/MusicMeta.js'; 21 22 22 23 const __dirname = path.dirname(fileURLToPath(import.meta.url)); … … 1014 1015 siteAvatar, 1015 1016 postHasPlayableAudio: ActivityPubService.hasPlayableAudio(post.content || '', site.id), 1017 musicLd: MusicMeta.build((process.env.PUBLIC_BASE_URL || `${req.protocol}://${req.get('host')}`).replace(/\/+$/, ''), site, post), 1016 1018 pageTitle: post.title + ' - ' + site.title, 1017 1019 socialDescr: post.excerpt || '', -
src/views/shell.ejs
r93b147d r328d837 199 199 <script type="application/ld+json"><%- JSON.stringify(_jsonLd) %></script> 200 200 <% } %> 201 <% if (typeof musicLd !== 'undefined' && musicLd) { %> 202 <%# Music posts also carry standard schema.org MusicRecording/MusicAlbum data (Phase 1 of 203 music federation): real web standard, read by search engines + generic consumers. %> 204 <script type="application/ld+json"><%- JSON.stringify(musicLd) %></script> 205 <% } %> 201 206 202 207 <!-- Self-hosted fonts (privacy-first) -->
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)