diff options
author | Lorenz Diener <[email protected]> | 2020-02-22 16:43:16 +0100 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2020-02-22 16:43:16 +0100 |
commit | 05e2bcb967946211320d47140ab42a9600b8aff2 (patch) | |
tree | 5ee841fc26c40954df9b4cd8acb94c9954faa07f | |
parent | e2b9855ce9f8a1d305fe4e5c10c724c5ea1119cc (diff) | |
download | mastodon.py-05e2bcb967946211320d47140ab42a9600b8aff2.tar.gz |
Add bookmark scopes and entity/versioning info
-rw-r--r-- | docs/index.rst | 1 | ||||
-rw-r--r-- | 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 | |||
314 | 'media_attachments': # A list of media dicts of attached files | 314 | 'media_attachments': # A list of media dicts of attached files |
315 | 'emojis': # A list of custom emojis used in the toot, as Emoji dicts | 315 | 'emojis': # A list of custom emojis used in the toot, as Emoji dicts |
316 | 'tags': # A list of hashtag used in the toot, as Hashtag dicts | 316 | 'tags': # A list of hashtag used in the toot, as Hashtag dicts |
317 | 'bookmarked': # True if the status is bookmarked by the logged in user, False if not. | ||
317 | 'application': # Application dict for the client used to post the toot (Does not federate | 318 | 'application': # Application dict for the client used to post the toot (Does not federate |
318 | # and is therefore always None for remote toots, can also be None for | 319 | # and is therefore always None for remote toots, can also be None for |
319 | # local toots for some legacy applications). | 320 | # 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: | |||
148 | 'read:mutes', | 148 | 'read:mutes', |
149 | 'read:notifications', | 149 | 'read:notifications', |
150 | 'read:search', | 150 | 'read:search', |
151 | 'read:statuses' | 151 | 'read:statuses', |
152 | 'read:bookmarks' | ||
152 | ], | 153 | ], |
153 | 'write': [ | 154 | 'write': [ |
154 | 'write:accounts', | 155 | 'write:accounts', |
@@ -162,6 +163,7 @@ class Mastodon: | |||
162 | 'write:notifications', | 163 | 'write:notifications', |
163 | 'write:reports', | 164 | 'write:reports', |
164 | 'write:statuses', | 165 | 'write:statuses', |
166 | 'write:bookmarks' | ||
165 | ], | 167 | ], |
166 | 'follow': [ | 168 | 'follow': [ |
167 | 'read:blocks', | 169 | 'read:blocks', |
@@ -191,7 +193,7 @@ class Mastodon: | |||
191 | __DICT_VERSION_MEDIA = "2.8.2" | 193 | __DICT_VERSION_MEDIA = "2.8.2" |
192 | __DICT_VERSION_ACCOUNT = "3.1.0" | 194 | __DICT_VERSION_ACCOUNT = "3.1.0" |
193 | __DICT_VERSION_POLL = "2.8.0" | 195 | __DICT_VERSION_POLL = "2.8.0" |
194 | __DICT_VERSION_STATUS = bigger_version(bigger_version(bigger_version(bigger_version(bigger_version("2.9.1", | 196 | __DICT_VERSION_STATUS = bigger_version(bigger_version(bigger_version(bigger_version(bigger_version("3.1.0", |
195 | __DICT_VERSION_MEDIA), __DICT_VERSION_ACCOUNT), __DICT_VERSION_APPLICATION), __DICT_VERSION_MENTION), __DICT_VERSION_POLL) | 197 | __DICT_VERSION_MEDIA), __DICT_VERSION_ACCOUNT), __DICT_VERSION_APPLICATION), __DICT_VERSION_MENTION), __DICT_VERSION_POLL) |
196 | __DICT_VERSION_INSTANCE = bigger_version("2.9.2", __DICT_VERSION_ACCOUNT) | 198 | __DICT_VERSION_INSTANCE = bigger_version("2.9.2", __DICT_VERSION_ACCOUNT) |
197 | __DICT_VERSION_HASHTAG = "2.3.4" | 199 | __DICT_VERSION_HASHTAG = "2.3.4" |