mirror of
https://github.com/Tech-Workers-Coalition-Italia/mobilizon-reshare.git
synced 2025-01-30 00:55:13 +01:00
6430de4a84
* 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.
9 lines
577 B
Markdown
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` |