aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authormicah <[email protected]>2022-11-25 22:01:57 +0000
committermicah <[email protected]>2022-11-25 22:01:57 +0000
commit677474820f0c4598c03e963e10822d69cda7bdde (patch)
treefa08ab427ca2a0374339ac9e39b40a92e8a80e4e /docs
parent2b8c5de03fb81704aac7639539354783f5a5e3c1 (diff)
downloadmastodon.py-677474820f0c4598c03e963e10822d69cda7bdde.tar.gz
update docs, too!
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 a1d9695..b95c64d 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)