Mobilizon-Reshare-condividi.../doc/add-new-publisher.md
Giacomo Leidi 6430de4a84
Add Mastodon publisher. (#83)
* Add Mastodon publisher.

This commit enables publishing on Mastodon and tries to define the
minimal requirements for adding a new platform to Mobilizon Reshare.

* publishers: exceptions: Add HTTPError.

* platforms: mastodon: Make toot length customizable.
2021-10-20 00:08:58 +02:00

9 lines
577 B
Markdown

# Add a new publisher
To add a new publishing platform to Mobilizon Reshare you need to follow these steps.
## Add an example configuration in `mobilizon_reshare/.secrets.toml`
## Add suitable validators to `mobilizon_reshare/config/notifiers.py` and `mobilizon_reshare/config/publishers.py`
## Create a new file inside `mobilizon_reshare/publishers/platforms`
## Add suitable mappings inside `mobilizon_reshare/publishers/platform_mapping.py`
## Create suitable message templates inside `mobilizon_reshare/publishers/templates`
## Add some unit test inside `tests/publishers`