Usage
longhorn in itself is just a webserver and a publishing tool. It can be installed with (not yet, but soon)
pip install longhorn
python -mlonghorn.setup
This should setup the database in db.sqlite3 and guide you through the necessary steps to enable longhorn to act as an ActivityPub Client using Moo Auth to communicate with your ActivityPub Server.
Then running longhorn can be done via
hypercorn longhorn:app
Finally, one needs to add longhorn to mechanical_bull via
[username]
private_key = "secret"
host = "domain.yours"
[username.handlers]
"mechanical_bull.actions.accept_follow_request" = true
"longhorn.actions" = { db_url = "sqlite:///opt/blog/db.sqlite3" }
The following contains documentation on the two built in commands of longhorn.
setup
usage: python -mlonghorn.setup [-h]
Posting
Posts are formatted using markdown
usage: python -mlonghorn.post [-h] file
Positional Arguments
- file
File to post