diff options
-rw-r--r-- | mastodon/Mastodon.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index befb030..c519a0d 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -3376,8 +3376,8 @@ class Mastodon: | |||
3376 | if id is not None: | 3376 | if id is not None: |
3377 | return self.__api_request('GET', '/api/v1/admin/domain_blocks/{0}'.format(id)) | 3377 | return self.__api_request('GET', '/api/v1/admin/domain_blocks/{0}'.format(id)) |
3378 | else: | 3378 | else: |
3379 | params = params = self.__generate_params(locals(),['limit']) | 3379 | params = self.__generate_params(locals(),['limit']) |
3380 | return self.__api_request('GET', '/api/v1/admin/domain_blocks/') | 3380 | return self.__api_request('GET', '/api/v1/admin/domain_blocks/', params) |
3381 | 3381 | ||
3382 | @api_version("4.0.0","4.0.0","4.0.0") | 3382 | @api_version("4.0.0","4.0.0","4.0.0") |
3383 | def admin_domain_block(self, domain:str, severity:str=None, reject_media:bool=None, reject_reports:bool=None, private_comment:str=None, public_comment:str=None, obfuscate:bool=None): | 3383 | def admin_domain_block(self, domain:str, severity:str=None, reject_media:bool=None, reject_reports:bool=None, private_comment:str=None, public_comment:str=None, obfuscate:bool=None): |
@@ -3413,7 +3413,7 @@ class Mastodon: | |||
3413 | Valid severities are: | 3413 | Valid severities are: |
3414 | * "silence" - hide all posts from federated timelines and do not show notifications to local users from the remote instance's users unless they are following the remote user. | 3414 | * "silence" - hide all posts from federated timelines and do not show notifications to local users from the remote instance's users unless they are following the remote user. |
3415 | * "suspend" - deny interactions with this instance going forward. This action is reversible. | 3415 | * "suspend" - deny interactions with this instance going forward. This action is reversible. |
3416 | * "limit" - generally used with reject_media=true to force reject media from an instance without silencing or suspending.. | 3416 | * "limit" - generally used with reject_media=true to force reject media from an instance without silencing or suspending. |
3417 | 3417 | ||
3418 | If no action is specified, the domain is only silenced. | 3418 | If no action is specified, the domain is only silenced. |
3419 | `domain` is the domain to block. Note that using the top level domain will also imapct all subdomains. ie, example.com will also impact subdomain.example.com. | 3419 | `domain` is the domain to block. Note that using the top level domain will also imapct all subdomains. ie, example.com will also impact subdomain.example.com. |