aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2022-11-26 00:15:40 +0200
committerGitHub <[email protected]>2022-11-26 00:15:40 +0200
commit9171760ebfdf72582a9e31404b3a5c6ed9d098fd (patch)
treea752aa2ca3b1b76dc3987b81de7ef3b13988b853 /docs
parent6c9683cbbff58fac1ce93d6aeac4e3ac0fbd7905 (diff)
parent677474820f0c4598c03e963e10822d69cda7bdde (diff)
downloadmastodon.py-9171760ebfdf72582a9e31404b3a5c6ed9d098fd.tar.gz
Merge pull request #281 from catgoat/catgoat/domain_blocks
Add admin domain blocks
Diffstat (limited to 'docs')
-rw-r--r--docs/index.rst23
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/index.rst b/docs/index.rst
index 10e18c0..bb6e5b1 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -882,6 +882,25 @@ Admin account dicts
882 'account': # The user's account, as a standard user dict 882 'account': # The user's account, as a standard user dict
883 } 883 }
884 884
885Admin domain block dicts
886~~~~~~~~~~~~~~~~~~~~~~~~
887.. _domain dicts
888
889.. code-block::python
890 mastodon.domain_blocks(id=1)
891 #Returns the following dictionary:
892 {
893 'id': #Str. The database id of a domain block,
894 'domain': #Str. The root domain of a block, ie: "example.com",
895 'created_at': #Datetime of the block creation.
896 'severity': #Str. Severity of the domain block, ie: "suspend".
897 'reject_media': #Boolean. True if media is not downloaded from this domain.
898 'reject_reports': #Boolean. True if reports are automatically ignored from this domain.
899 'private_comment': #Str. Private admin comment for a block. None if not set.
900 'public_comment': #Str. Publicly viewable (depending on settings) comment about this domain. None if not set.
901 'obfuscate': #Boolean. True if domain name is obfuscated when listing.
902 }
903
885Status edit dicts 904Status edit dicts
886~~~~~~~~~~~~~~~~~ 905~~~~~~~~~~~~~~~~~
887.. _status edit dict: 906.. _status edit dict:
@@ -1446,6 +1465,10 @@ have admin: scopes attached with a lot of care, but be extra careful with those
1446.. automethod:: Mastodon.admin_trending_tags 1465.. automethod:: Mastodon.admin_trending_tags
1447.. automethod:: Mastodon.admin_trending_statuses 1466.. automethod:: Mastodon.admin_trending_statuses
1448.. automethod:: Mastodon.admin_trending_links 1467.. automethod:: Mastodon.admin_trending_links
1468.. automethod:: Mastodon.admin_domain_blocks
1469.. automethod:: Mastodon.admin_domain_block
1470.. automethod:: Mastodon.admin_update_domain_block
1471.. automethod:: Mastodon.admin_delete_domain_block
1449 1472
1450Acknowledgements 1473Acknowledgements
1451---------------- 1474----------------
Powered by cgit v1.2.3 (git 2.41.0)