Update instance dict docs and version

This commit is contained in:
Lorenz Diener 2019-04-27 23:39:17 +02:00
pare 861bdc7693
commit efcd01a3ed
S'han modificat 2 arxius amb 8 adicions i 1 eliminacions

Veure arxiu

@ -312,6 +312,8 @@ Toot dicts
'pinned': # Boolean denoting whether or not the status is currently pinned for the 'pinned': # Boolean denoting whether or not the status is currently pinned for the
# associated account. # associated account.
'replies_count': # The number of replies to this status. 'replies_count': # The number of replies to this status.
'card': # A preview card for links from the status, if present at time of delivery,
# as card dict.
} }
Mention dicts Mention dicts
@ -565,9 +567,14 @@ Instance dicts
'version': # The instances mastodon version 'version': # The instances mastodon version
'urls': # Additional URLs dict, presently only 'streaming_api' with the 'urls': # Additional URLs dict, presently only 'streaming_api' with the
# stream websocket address. # stream websocket address.
'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 'languages': # Array of ISO 639-1 (two-letter) language codes the instance
# has chosen to advertise. # has chosen to advertise.
'registrations': # Boolean indication whether registrations on this instance are open
# (True) or not (False).
} }
Activity dicts Activity dicts

Veure arxiu

@ -164,7 +164,7 @@ class Mastodon:
__DICT_VERSION_ACCOUNT = "2.4.0" __DICT_VERSION_ACCOUNT = "2.4.0"
__DICT_VERSION_STATUS = bigger_version(bigger_version(bigger_version(bigger_version("2.5.0", __DICT_VERSION_STATUS = bigger_version(bigger_version(bigger_version(bigger_version("2.5.0",
__DICT_VERSION_MEDIA), __DICT_VERSION_ACCOUNT), __DICT_VERSION_APPLICATION), __DICT_VERSION_MENTION) __DICT_VERSION_MEDIA), __DICT_VERSION_ACCOUNT), __DICT_VERSION_APPLICATION), __DICT_VERSION_MENTION)
__DICT_VERSION_INSTANCE = bigger_version("2.3.0", __DICT_VERSION_ACCOUNT) __DICT_VERSION_INSTANCE = bigger_version("2.6.0", __DICT_VERSION_ACCOUNT)
__DICT_VERSION_HASHTAG = "2.3.4" __DICT_VERSION_HASHTAG = "2.3.4"
__DICT_VERSION_EMOJI = "2.1.0" __DICT_VERSION_EMOJI = "2.1.0"
__DICT_VERSION_RELATIONSHIP = "2.5.0" __DICT_VERSION_RELATIONSHIP = "2.5.0"