Changeset 857a06f in Klonkt for src/services/Scheduler.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/services/Scheduler.js

    rb5a09ce2 r857a06f  
    1515  try {
    1616    const due = db.prepare(`
    17       SELECT p.id, p.site_id, p.slug, p.title, p.content, p.cover_image_url, p.fan_only, p.nsfw, p.content_warning,
     17      SELECT p.id, p.site_id, p.slug, p.title, p.content, p.cover_image_url, p.cover_video_url, p.fan_only, p.nsfw, p.content_warning,
    1818             p.published_at, p.publish_at, p.created_at, u.username
    1919      FROM posts p JOIN users u ON u.id = p.author_id
     
    3838          ActivityPubService.deliverCreate(site, {
    3939            id: p.id, slug: p.slug, title: p.title || p.slug,
    40             content: p.content, cover_image_url: p.cover_image_url || null,
     40            content: p.content, cover_image_url: p.cover_image_url || null, cover_video_url: p.cover_video_url || null,
    4141            published_at: p.published_at || p.publish_at, created_at: p.created_at, fan_only: p.fan_only, nsfw: p.nsfw, content_warning: p.content_warning,
    4242          }).catch(() => { /* best-effort */ });
Note: See TracChangeset for help on using the changeset viewer.