diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-23 23:57:57 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-24 00:01:12 +0200 |
commit | 34280e604ce1caf56b3fa0b8501d82bc498b3975 (patch) | |
tree | 3e6f825f3a2c90a0a2c96c1581e0318171e25b28 /mastodon | |
parent | f6d12aa5b1cc1dffcff31d1af1b0b58d9ecd4c1e (diff) | |
download | mastodon.py-34280e604ce1caf56b3fa0b8501d82bc498b3975.tar.gz |
Largely pointless now, so replacing with just a note
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/Mastodon.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 7e9f06f..57fadb3 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -3666,16 +3666,6 @@ class Mastodon: | |||
3666 | else: | 3666 | else: |
3667 | kwargs['data'] = params | 3667 | kwargs['data'] = params |
3668 | 3668 | ||
3669 | # Block list with exactly three entries, matching on hashes of the instance API domain | ||
3670 | # For more information, have a look at the docs | ||
3671 | if hashlib.sha256(",".join(base_url.split("//")[-1].split("/")[0].split(".")[-2:]).encode("utf-8")).hexdigest() in \ | ||
3672 | [ | ||
3673 | "f3b50af8594eaa91dc440357a92691ff65dbfc9555226e9545b8e083dc10d2e1", | ||
3674 | "b96d2de9784efb5af0af56965b8616afe5469c06e7188ad0ccaee5c7cb8a56b6", | ||
3675 | "2dc0cbc89fad4873f665b78cc2f8b6b80fae4af9ac43c0d693edfda27275f517" | ||
3676 | ]: | ||
3677 | raise Exception("Access denied.") | ||
3678 | |||
3679 | response_object = self.session.request( | 3669 | response_object = self.session.request( |
3680 | method, base_url + endpoint, **kwargs) | 3670 | method, base_url + endpoint, **kwargs) |
3681 | except Exception as e: | 3671 | except Exception as e: |