Changeset 1d6f9a2 in Klonkt for src/config


Ignore:
Timestamp:
06/30/2026 05:29:01 PM (2 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
b5a09ce2
Parents:
ecbfa41
Message:

feat(video-cover): backend — convert animated WebP covers to a muted loop MP4 on upload

  • DB: posts.cover_video_url (the muted loop MP4 for an animated cover)
  • /posts/upload-image: an animated WebP → VideoCoverService.animatedWebpToVideo → returns {video} next to the still {url}; create + save persist cover_video_url (req.body.cover_video_url)

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/config/database.js

    recbfa41 r1d6f9a2  
    8484  ensureColumn('posts', 'fan_only', 'INTEGER DEFAULT 0');  // fan-only preview (premium #3)
    8585  ensureColumn('posts', 'nsfw',     'INTEGER DEFAULT 0');  // sensitive content → blur + click-to-reveal; fediverse sensitive
     86  ensureColumn('posts', 'cover_video_url', 'TEXT');        // muted loop MP4 for an animated cover (Safari-smooth)
    8687  ensureColumn('posts', 'content_warning', 'TEXT');        // custom CW label (empty = default "Gevoelige inhoud")
    8788  ensureColumn('posts', 'type',    "TEXT DEFAULT 'post'");  // post | foto | video | audio
Note: See TracChangeset for help on using the changeset viewer.