Changeset 857a06f in Klonkt for src/routes/posts.js


Ignore:
Timestamp:
06/30/2026 05:43:39 PM (2 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
7ecbefc
Parents:
b5a09ce2
Message:

feat(video-cover): federate an animated cover as a Video attachment (not the WebP)

buildNote now prefers post.cover_video_url -> the muted loop MP4 ships as an AS2 Video attachment
instead of the animated WebP (unreliable on Mastodon + its iOS apps; the MP4 plays everywhere).
mediaType learns mp4/webm/mov; cover_video_url threaded through every buildNote source
(create/save hooks, Scheduler, outbox + featured + backfill SELECTs).

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/routes/posts.js

    rb5a09ce2 r857a06f  
    286286      ActivityPubService.deliverCreate(site, {
    287287        id: postId, slug: finalSlug, title: title || finalSlug,
    288         content: cleanContent, cover_image_url: cover_image_url || null,
     288        content: cleanContent, cover_image_url: cover_image_url || null, cover_video_url: req.body.cover_video_url || null,
    289289        published_at: publishedAt, created_at: now, fan_only: fanOnly, nsfw, content_warning: cw,
    290290      }).catch(() => { /* best-effort */ });
     
    417417    const apPost = {
    418418      id: post.id, slug: finalSlug, title: title || finalSlug,
    419       content: cleanContent, cover_image_url: cover_image_url || null,
     419      content: cleanContent, cover_image_url: cover_image_url || null, cover_video_url: req.body.cover_video_url || null,
    420420      published_at: publishedAt, created_at: post.created_at, fan_only: fanOnly, nsfw, content_warning: cw,
    421421    };
Note: See TracChangeset for help on using the changeset viewer.