From 05e2bcb967946211320d47140ab42a9600b8aff2 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 22 Feb 2020 16:43:16 +0100 Subject: Add bookmark scopes and entity/versioning info --- docs/index.rst | 1 + mastodon/Mastodon.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 0e0daa9..9b43b87 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -314,6 +314,7 @@ Toot dicts 'media_attachments': # A list of media dicts of attached files 'emojis': # A list of custom emojis used in the toot, as Emoji dicts 'tags': # A list of hashtag used in the toot, as Hashtag dicts + 'bookmarked': # True if the status is bookmarked by the logged in user, False if not. 'application': # Application dict for the client used to post the toot (Does not federate # and is therefore always None for remote toots, can also be None for # local toots for some legacy applications). diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index c25c4db..d919be9 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -148,7 +148,8 @@ class Mastodon: 'read:mutes', 'read:notifications', 'read:search', - 'read:statuses' + 'read:statuses', + 'read:bookmarks' ], 'write': [ 'write:accounts', @@ -162,6 +163,7 @@ class Mastodon: 'write:notifications', 'write:reports', 'write:statuses', + 'write:bookmarks' ], 'follow': [ 'read:blocks', @@ -191,7 +193,7 @@ class Mastodon: __DICT_VERSION_MEDIA = "2.8.2" __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_STATUS = bigger_version(bigger_version(bigger_version(bigger_version(bigger_version("3.1.0", __DICT_VERSION_MEDIA), __DICT_VERSION_ACCOUNT), __DICT_VERSION_APPLICATION), __DICT_VERSION_MENTION), __DICT_VERSION_POLL) __DICT_VERSION_INSTANCE = bigger_version("2.9.2", __DICT_VERSION_ACCOUNT) __DICT_VERSION_HASHTAG = "2.3.4" -- cgit v1.2.3