Changeset 5a93ac0 in Klonkt for src/routes/posts.js


Ignore:
Timestamp:
06/24/2026 11:16:28 AM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
eb852c5
Parents:
065452a
Message:

feat(activitypub): federate images as attachments

Cover image + inline <img> are emitted as AP attachment (Document) with absolute
URLs + mediaType; <img> stripped from content (Mastodon strips it anyway). Outbox
+ post-create delivery now include cover_image_url.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/routes/posts.js

    r065452a r5a93ac0  
    236236      ActivityPubService.deliverCreate(site, {
    237237        id: postId, slug: finalSlug, title: title || finalSlug,
    238         content: cleanContent, published_at: publishedAt, created_at: now,
     238        content: cleanContent, cover_image_url: cover_image_url || null,
     239        published_at: publishedAt, created_at: now,
    239240      }).catch(() => { /* best-effort */ });
    240241    }
Note: See TracChangeset for help on using the changeset viewer.