bug: Bluesky plugin ignores media attachments -- no blob upload support #234

Open
opened 2026-06-29 14:20:51 +00:00 by jmiller · 1 comment
Owner

Description

BlueskyService::publish() accepts array $media but never uses it. The plugin declares supportsMedia(): true and getSupportedMediaTypes(): ['image'], but only creates text posts with optional external link card embeds.

The AT Protocol supports image attachments via blob uploads (com.atproto.repo.uploadBlob), which should be referenced as app.bsky.embed.images in the post record.

Expected behavior

When $media is non-empty:

  1. Upload each image blob via POST /xrpc/com.atproto.repo.uploadBlob
  2. Build an app.bsky.embed.images embed with the returned blob refs
  3. If both images and an article URL are present, use app.bsky.embed.recordWithMedia to combine link card + images

Current behavior

Only link card embeds are created. Images from the article are silently ignored.

Affected file

source/packages/plg_mokosuitecross_bluesky/src/Extension/BlueskyService.php

## Description `BlueskyService::publish()` accepts `array $media` but never uses it. The plugin declares `supportsMedia(): true` and `getSupportedMediaTypes(): ['image']`, but only creates text posts with optional external link card embeds. The AT Protocol supports image attachments via blob uploads (`com.atproto.repo.uploadBlob`), which should be referenced as `app.bsky.embed.images` in the post record. ## Expected behavior When `$media` is non-empty: 1. Upload each image blob via `POST /xrpc/com.atproto.repo.uploadBlob` 2. Build an `app.bsky.embed.images` embed with the returned blob refs 3. If both images and an article URL are present, use `app.bsky.embed.recordWithMedia` to combine link card + images ## Current behavior Only link card embeds are created. Images from the article are silently ignored. ## Affected file `source/packages/plg_mokosuitecross_bluesky/src/Extension/BlueskyService.php`
Author
Owner

Branch created: feature/234-bug-bluesky-plugin-ignores-media-attachm

git fetch origin
git checkout feature/234-bug-bluesky-plugin-ignores-media-attachm
Branch created: [`feature/234-bug-bluesky-plugin-ignores-media-attachm`](https://git.mokoconsulting.tech/MokoConsulting/MokoSuiteCross/src/branch/feature/234-bug-bluesky-plugin-ignores-media-attachm) ```bash git fetch origin git checkout feature/234-bug-bluesky-plugin-ignores-media-attachm ```
Sign in to join this conversation.
No labels
Priority Medium
Type Feature
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoSuiteCross#234