Skip to content

kleinesfilmroellchen/fediblablag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages