From 5f425d378634da269c76d1646d39f09fd17c2b92 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 22 Jun 2019 21:07:52 +0200 Subject: [PATCH] Document 2.9.2 instance dict changes --- CHANGELOG.rst | 1 + docs/index.rst | 6 ++++-- mastodon/Mastodon.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index df5f584..ab6c48b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,7 @@ version number. Breaking changes will be indicated by a change in the minor v1.4.4 ------ +* Added support for moderation API (Thanks Gargron for the clarifications and dotUser for helping with testing) * Made status_delete return the deleted status (With "source" attribute) * Added account_id parameter to notifications * Added streaming_health diff --git a/docs/index.rst b/docs/index.rst index 75773ce..30dbb00 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -634,6 +634,7 @@ Instance dicts # Returns the following dictionary { 'description': # A brief instance description set by the admin + 'short_description': # An even briefer instance description 'email': # The admin contact e-mail 'title': # The instances title 'uri': # The instances URL @@ -643,11 +644,12 @@ Instance dicts 'stats: # A dictionary containing three stats, user_count (number of local users), # status_count (number of local statuses) and domain_count (number of known # instance domains other than this one). - 'contact_account': # Account dict of the primary contact for the instance. + 'contact_account': # Account dict of the primary contact for the instance 'languages': # Array of ISO 639-1 (two-letter) language codes the instance # has chosen to advertise. 'registrations': # Boolean indication whether registrations on this instance are open - # (True) or not (False). + # (True) or not (False) + 'approval_required': # True if account approval is required when registering } Activity dicts diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 1ad512e..e6fbcf2 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -190,7 +190,7 @@ class Mastodon: __DICT_VERSION_POLL = "2.8.0" __DICT_VERSION_STATUS = bigger_version(bigger_version(bigger_version(bigger_version(bigger_version("2.9.1", __DICT_VERSION_MEDIA), __DICT_VERSION_ACCOUNT), __DICT_VERSION_APPLICATION), __DICT_VERSION_MENTION), __DICT_VERSION_POLL) - __DICT_VERSION_INSTANCE = bigger_version("2.7.2", __DICT_VERSION_ACCOUNT) + __DICT_VERSION_INSTANCE = bigger_version("2.9.2", __DICT_VERSION_ACCOUNT) __DICT_VERSION_HASHTAG = "2.3.4" __DICT_VERSION_EMOJI = "2.1.0" __DICT_VERSION_RELATIONSHIP = "2.5.0"