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 NOT account password. You MUST add an app password for this extension.

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 the checkbox "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.

This extension work fine so far but the AT Protocol has been developing now.

AT Protocol API

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