Extension:BlueskyPost

The  extension provides a way to post a summary to Bluesky via the AT Protocol API when a page is created or updated.

Installation
App password as NOT account password. You MUST add an app password for this extension.

Embed link card with image
(v0.2.0+) This extension supported to embed a link card.

If you want to embed cards with images, install Extension:PageImages also.

If Extension:PageImages not installed, this extension embed link cards without images.

Checkbox default value
If you want to set default checkbox value, set $wgBlueskyPostChecked true or false on LocalSettings.php as follows.

Timeout
This extension will timed out 10 seconds by default to call AT Protocol API.

If you want to set other times, you can set $wgBlueskyPostTimeout on LocalSettings.php as follows.

Language
If you want to set default languages of posts, set variables on LocalSettings.php as follows.

Suppress checkbox
If you want to suppress to use this extension on create (new) or edit (exist) pages, set variables on LocalSettings.php as follows.

If you want to suppress this extension on new (create) pages, set below.

Or if you want to suppress this extension on edit (exist) pages, set below. 

Usage
Edit a page as usual with summary and submit with check "Post to Bluesky".

Then make a post of summary, title and URL to Bluesky automatically by this extension.

Note: This extension not work on minor edit.



☐  ☑ Help:Watchlist  ☑ Post to Bluesky ← check it Cancel

Dependency

 * MediaWiki 1.35+ - using PageSaveComplete hook
 * PHP 7.2.0+ - call json_encode with JSON_INVALID_UTF8_IGNORE

Beta status
This extension support only text. Not support to attach images yet. support to embed a link card with an image in v0.2.0.

This extension work fine so far but the AT Protocol has been developing now. It may become outdated if new features are added to atproto and the Bluesky application schemas.

AT Protocol API

 * Posting via the Bluesky API
 * AT Protocol Guides
 * Community Projects
 * https://github.com/bluesky-social/atproto/tree/main/packages/api