Add note to blocklist code. Fixes #210.

This commit is contained in:
Lorenz Diener 2020-02-15 16:45:14 +01:00
pare 4e76f6e322
commit 4d8dae71a9

Veure arxiu

@ -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",