Skip to content

Michael-Brooks/hack

 
 

Repository files navigation

Hack

Hacks for Mastodon. We suggest using tootctl whenever possible.

Here are global variables you should set to interact with the API.

MASTODON_SERVER="hachyderm.io"

You will need to generate a client key and secret you can just do this by creating a new application in your settings. You should also be able to get an access token from your settings, but you can also get it from the OAuth authorize and token scheme.

MASTODON_ACCESS_TOKEN="abc123def"

Then you can run the scripts!

A docker compose file makes it handy for you to run it scoped without modifying your environment :

# Run the complete blocklist
docker compose up
# or 
docker compose run hack domain_block_from_blocklist

# Block a specific domain
docker compose run hack domain_block <domain>

# Unblock the complete unblocklist
docker compose run hack domain_unblock_from_unblocklist

# Unblock a specific domain
docker compose run hack domain_unblock <domain>

About

Hachyderm Administration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 96.0%
  • Dockerfile 4.0%