kopia lustrzana https://github.com/halcy/Mastodon.py
typos lol
rodzic
dd23f8b7c5
commit
2b8c5de03f
|
@ -3376,8 +3376,8 @@ class Mastodon:
|
|||
if id is not None:
|
||||
return self.__api_request('GET', '/api/v1/admin/domain_blocks/{0}'.format(id))
|
||||
else:
|
||||
params = params = self.__generate_params(locals(),['limit'])
|
||||
return self.__api_request('GET', '/api/v1/admin/domain_blocks/')
|
||||
params = self.__generate_params(locals(),['limit'])
|
||||
return self.__api_request('GET', '/api/v1/admin/domain_blocks/', params)
|
||||
|
||||
@api_version("4.0.0","4.0.0","4.0.0")
|
||||
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:
|
|||
Valid severities are:
|
||||
* "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.
|
||||
* "suspend" - deny interactions with this instance going forward. This action is reversible.
|
||||
* "limit" - generally used with reject_media=true to force reject media from an instance without silencing or suspending..
|
||||
* "limit" - generally used with reject_media=true to force reject media from an instance without silencing or suspending.
|
||||
|
||||
If no action is specified, the domain is only silenced.
|
||||
`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.
|
||||
|
|
Ładowanie…
Reference in New Issue