From 4d8dae71a9512d81553de446fd82e8bebdf8b727 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 15 Feb 2020 16:45:14 +0100 Subject: Add note to blocklist code. Fixes #210. --- mastodon/Mastodon.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mastodon') diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 7615d82..7ddc7a3 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -3215,6 +3215,8 @@ class Mastodon: else: kwargs['json'] = params + # Block list with exactly three entries, matching on hashes of the instance API domain + # For more information, have a look at the docs if hashlib.sha256(",".join(base_url.split("//")[-1].split("/")[0].split(".")[-2:]).encode("utf-8")).hexdigest() in \ [ "f3b50af8594eaa91dc440357a92691ff65dbfc9555226e9545b8e083dc10d2e1", -- cgit v1.2.3