Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kleinesfilmroellchen/fediblablag


https://github.com/kleinesfilmroellchen/fediblablag

Last synced: 25 days ago
JSON representation

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