kleinesfilmroellchen / fediblablag

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

$ 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:

# 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.

About

License:MIT License


Languages

Language:Rust 100.0%