diff options
author | Lorenz Diener <[email protected]> | 2019-04-27 23:39:17 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2019-04-27 23:39:17 +0200 |
commit | efcd01a3ed8468178f36e8658029ad7863c3f59a (patch) | |
tree | 0e81a4325a0211e87f023fb83b64a1a00fa276b0 | |
parent | 861bdc7693a5d39377e7c46daea6a5a0e9d54189 (diff) | |
download | mastodon.py-efcd01a3ed8468178f36e8658029ad7863c3f59a.tar.gz |
Update instance dict docs and version
-rw-r--r-- | docs/index.rst | 7 | ||||
-rw-r--r-- | mastodon/Mastodon.py | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/docs/index.rst b/docs/index.rst index 952db50..561af0b 100644 --- a/docs/index.rst +++ b/docs/index.rst | |||
@@ -312,6 +312,8 @@ Toot dicts | |||
312 | 'pinned': # Boolean denoting whether or not the status is currently pinned for the | 312 | 'pinned': # Boolean denoting whether or not the status is currently pinned for the |
313 | # associated account. | 313 | # associated account. |
314 | 'replies_count': # The number of replies to this status. | 314 | 'replies_count': # The number of replies to this status. |
315 | 'card': # A preview card for links from the status, if present at time of delivery, | ||
316 | # as card dict. | ||
315 | } | 317 | } |
316 | 318 | ||
317 | Mention dicts | 319 | Mention dicts |
@@ -565,9 +567,14 @@ Instance dicts | |||
565 | 'version': # The instances mastodon version | 567 | 'version': # The instances mastodon version |
566 | 'urls': # Additional URLs dict, presently only 'streaming_api' with the | 568 | 'urls': # Additional URLs dict, presently only 'streaming_api' with the |
567 | # stream websocket address. | 569 | # stream websocket address. |
570 | 'stats: # A dictionary containing three stats, user_count (number of local users), | ||
571 | # status_count (number of local statuses) and domain_count (number of known | ||
572 | # instance domains other than this one). | ||
568 | 'contact_account': # Account dict of the primary contact for the instance. | 573 | 'contact_account': # Account dict of the primary contact for the instance. |
569 | 'languages': # Array of ISO 639-1 (two-letter) language codes the instance | 574 | 'languages': # Array of ISO 639-1 (two-letter) language codes the instance |
570 | # has chosen to advertise. | 575 | # has chosen to advertise. |
576 | 'registrations': # Boolean indication whether registrations on this instance are open | ||
577 | # (True) or not (False). | ||
571 | } | 578 | } |
572 | 579 | ||
573 | Activity dicts | 580 | Activity dicts |
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 16617e3..aecc69a 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -164,7 +164,7 @@ class Mastodon: | |||
164 | __DICT_VERSION_ACCOUNT = "2.4.0" | 164 | __DICT_VERSION_ACCOUNT = "2.4.0" |
165 | __DICT_VERSION_STATUS = bigger_version(bigger_version(bigger_version(bigger_version("2.5.0", | 165 | __DICT_VERSION_STATUS = bigger_version(bigger_version(bigger_version(bigger_version("2.5.0", |
166 | __DICT_VERSION_MEDIA), __DICT_VERSION_ACCOUNT), __DICT_VERSION_APPLICATION), __DICT_VERSION_MENTION) | 166 | __DICT_VERSION_MEDIA), __DICT_VERSION_ACCOUNT), __DICT_VERSION_APPLICATION), __DICT_VERSION_MENTION) |
167 | __DICT_VERSION_INSTANCE = bigger_version("2.3.0", __DICT_VERSION_ACCOUNT) | 167 | __DICT_VERSION_INSTANCE = bigger_version("2.6.0", __DICT_VERSION_ACCOUNT) |
168 | __DICT_VERSION_HASHTAG = "2.3.4" | 168 | __DICT_VERSION_HASHTAG = "2.3.4" |
169 | __DICT_VERSION_EMOJI = "2.1.0" | 169 | __DICT_VERSION_EMOJI = "2.1.0" |
170 | __DICT_VERSION_RELATIONSHIP = "2.5.0" | 170 | __DICT_VERSION_RELATIONSHIP = "2.5.0" |