- Timestamp:
- 06/27/2026 12:16:21 AM (2 months ago)
- Branches:
- main
- Children:
- 00a2bcd
- Parents:
- ace5a9b
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
race5a9b rcd6a008 223 223 body += `<p>🎵 ${lbl ? `<strong>${lbl}</strong> — ` : ''}<a href="${listenHref}">listen on ${esc(site.title || 'the site')}</a></p>`; 224 224 } 225 // Klonkt renders post content with white-space:pre-wrap, so raw newlines ARE line 226 // breaks on the site. Mastodon (plain HTML) collapses whitespace and would drop them, 227 // so convert newlines to <br> for the federated copy (content already made with 228 // shift+enter uses <br> and has no \n → this is a no-op there). 229 body = body.replace(/\r?\n/g, '<br>'); 225 230 const seen = new Set(); 226 231 const attachment = urls.filter(Boolean)
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)