From 95aee9349a0cc5a14a8bfbdfc4c38c197e18845a Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sun, 16 Feb 2020 16:53:35 +0100 Subject: Update entity documentation --- docs/index.rst | 5 ++++- mastodon/Mastodon.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 98fcd83..b3a1596 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -250,6 +250,9 @@ User dicts 'username': # The username (what you @ them with) 'acct': # The user's account name as username@domain (@domain omitted for local users) 'display_name': # The user's display name + 'discoverable': # True if the user is listed in the user directory, false if not. None + # for remote users. + 'group': # A surprise attribute that will help us later. 'locked': # Denotes whether the account can be followed without a follow request 'created_at': # Account creation time 'following_count': # How many people they follow @@ -510,7 +513,7 @@ Notification dicts # Returns the following dictionary: { 'id': # id of the notification - 'type': # "mention", "reblog", "favourite" or "follow" + 'type': # "mention", "reblog", "favourite", "follow", "poll" or "follow_request" 'created_at': # The time the notification was created 'account': # User dict of the user from whom the notification originates 'status': # In case of "mention", the mentioning status diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 04a30c7..dca6d67 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -189,7 +189,7 @@ class Mastodon: __DICT_VERSION_APPLICATION = "2.7.2" __DICT_VERSION_MENTION = "1.0.0" __DICT_VERSION_MEDIA = "2.8.2" - __DICT_VERSION_ACCOUNT = "2.4.0" + __DICT_VERSION_ACCOUNT = "3.1.0" __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) -- cgit v1.2.3