Changeset 8a474ab in Klonkt for src/routes
- Timestamp:
- 09/23/2026 12:13:31 PM (8 hours ago)
- Branches:
- main
- Children:
- 0ad37a0
- Parents:
- fa24f7b
- Location:
- src/routes
- Files:
-
- 2 edited
-
activitypub.js (modified) (7 diffs)
-
guardian.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/activitypub.js
rfa24f7b r8a474ab 365 365 const authorInfo = (r, prefix) => authorInfoFrom(r, prefix, p); 366 366 const { 367 embedsAllowed, playbackAllowed, imagesAllowed, musicAllowed, quotesAllowed, emojiAllowed,367 embedsAllowed, playbackAllowed, imagesAllowed, musicAllowed, videoAllowed, quotesAllowed, emojiAllowed, 368 368 } = p; 369 369 const reacties = reactions || new Map(); … … 392 392 // Friends' media travels along (media_json → AS2 attachment), so the 393 393 // client renders their images/audio like own outbox posts. 394 attachment: AP.gateAttachments(AP.timelineAttachments(t.media_json), { images: imagesAllowed, audio: musicAllowed }),394 attachment: AP.gateAttachments(AP.timelineAttachments(t.media_json), { images: imagesAllowed, audio: musicAllowed, video: videoAllowed }), 395 395 // The note's preserved tags, so the client can render them: FEP-9098 396 396 // Emoji tags (:shortcode: → image) and FEP-e232 Link tags (quotes / … … 467 467 'shaer:images': p.imagesAllowed, 468 468 'shaer:music': p.musicAllowed, 469 'shaer:video': p.videoAllowed, 469 470 'shaer:quoteCards': p.quotesAllowed, 470 471 'shaer:customEmoji': p.emojiAllowed, … … 495 496 imagesAllowed: gate('gate_images'), 496 497 musicAllowed: gate('gate_music'), 498 videoAllowed: gate('gate_video'), 497 499 quotesAllowed: gate('gate_quote_cards'), 498 500 emojiAllowed: emoji, … … 557 559 // mention row keeps the resolved quote, not the raw tags. 558 560 tag: [{ type: 'Mention', href: me, name: myHandle }, ...(p.emojiAllowed ? (AP.timelineEmojis(m.emoji_json) || []) : [])], 559 attachment: AP.gateAttachments(AP.timelineAttachments(m.media_json), { images: p.imagesAllowed, audio: p.musicAllowed }),561 attachment: AP.gateAttachments(AP.timelineAttachments(m.media_json), { images: p.imagesAllowed, audio: p.musicAllowed, video: p.videoAllowed }), 560 562 // FEP-633c: what kind of message this is. The wave is a gentle nudge from 561 563 // a guardian; the help request is the buoy. Both render differently. … … 829 831 const P = gatesFor(auth.site); 830 832 const { 831 embedsAllowed, playbackAllowed, imagesAllowed, musicAllowed, quotesAllowed,833 embedsAllowed, playbackAllowed, imagesAllowed, musicAllowed, videoAllowed, quotesAllowed, 832 834 emojiAllowed, messagesAllowed, composeAllowed, repliesAllowed, threadsAllowed, 833 835 followingAllowed, gateAuthor, … … 1423 1425 const kring = threadsOpen ? { notes: uit.notes, hidden: 0 } : AP.filterThreadToCircle(auth.site.slug, uit.notes); 1424 1426 const imagesOk = gate2('gate_images'), musicOk = gate2('gate_music'), emojiOk = gate2('gate_custom_emoji'); 1427 const videoOk = gate2('gate_video'); 1425 1428 uit.notes = kring.notes.map((n) => ({ 1426 1429 ...n, 1427 attachment: AP.gateAttachments(n.attachment, { images: imagesOk, audio: musicOk }),1430 attachment: AP.gateAttachments(n.attachment, { images: imagesOk, audio: musicOk, video: videoOk }), 1428 1431 tag: emojiOk ? n.tag : AP.stripEmojiTags(n.tag), 1429 1432 // De emoji-poort knipt in de byline zelf: FEP-9098 zit in de tag van de -
src/routes/guardian.js
rfa24f7b r8a474ab 79 79 'ev_coguardian_left', 'ev_gated_outcome', 'ev_lapse_opened', 80 80 'gate_propose_open', 'gate_propose_close', 'gate_default_off', 81 'gate_images', 'gate_messages', 'gate_compose', 'gate_replies', 'gate_music', 'gate_ quoteCards', 'gate_asked',81 'gate_images', 'gate_messages', 'gate_compose', 'gate_replies', 'gate_music', 'gate_video', 'gate_quoteCards', 'gate_asked', 82 82 'gate_customEmoji', 'gate_publicProfile', 'gate_accountMove', 'gate_independence', 83 83 'gate_unavailable', 'gate_planned_note', 'gates_summary', 'gates_show', 'gates_hide'];
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)