Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kleinesfilmroellchen/fediblablag
https://github.com/kleinesfilmroellchen/fediblablag
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kleinesfilmroellchen/fediblablag
- Owner: kleinesfilmroellchen
- License: mit
- Created: 2024-01-01T22:47:30.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-03T18:55:40.000Z (10 months ago)
- Last Synced: 2024-05-01T16:17:29.503Z (6 months ago)
- Language: Rust
- Size: 26.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fediblablag
Script to post a nicely formatted blogpost to any Fediverse server (supporting the Mastodon Client API), utilizing a thread as best as possible (with as few posts as possible).
## Usage
```console
$ cargo run -- path/to/post/file
```Only plain text is supported (the content type is always text/plain) for compatibility with normal Mastodon instances.
Set up environment variables or a .env file like this:
```shell
# Your instance's character limit, very important!
character_limit=500
instance_url=https://mastodon.example
# Obtained when creating your OAuth2 application, see https://docs.joinmastodon.org/client/token/#app
client_id=...
client_secret=...
vapid_key=...
# Obtained when authorizing the application with your account, see https://docs.joinmastodon.org/client/authorized/
account_authorization_code=...
access_token=...
```## Per-post configuration
A post can contain a Markdown frontmatter (delineated by three horizontal dashes) containing YAML configuration. The following config keys are supported at the moment (and others are ignored). All keys are optional.
| Key | Type | Description |
| ---- | ------ | ---------------------------------------------- |
| `cn` | string | Content Notice to attach to all created posts. |