From c66015a6b0655f865c45587095ca8744a9d61534 Mon Sep 17 00:00:00 2001 From: halcy Date: Sun, 13 Nov 2022 16:02:34 +0200 Subject: Add support and tests for "notifying" follow --- mastodon/Mastodon.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mastodon') diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 2d56ac9..7db5fba 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -215,7 +215,7 @@ class Mastodon: __DICT_VERSION_INSTANCE = bigger_version("3.1.4", __DICT_VERSION_ACCOUNT) __DICT_VERSION_HASHTAG = "2.3.4" __DICT_VERSION_EMOJI = "3.0.0" - __DICT_VERSION_RELATIONSHIP = "3.2.0" + __DICT_VERSION_RELATIONSHIP = "3.3.0" __DICT_VERSION_NOTIFICATION = bigger_version(bigger_version("1.0.0", __DICT_VERSION_ACCOUNT), __DICT_VERSION_STATUS) __DICT_VERSION_CONTEXT = bigger_version("1.0.0", __DICT_VERSION_STATUS) __DICT_VERSION_LIST = "2.1.0" @@ -2098,12 +2098,13 @@ class Mastodon: ### # Writing data: Accounts ### - @api_version("1.0.0", "2.4.3", __DICT_VERSION_RELATIONSHIP) - def account_follow(self, id, reblogs=True): + @api_version("1.0.0", "3.3.0", __DICT_VERSION_RELATIONSHIP) + def account_follow(self, id, reblogs=True, notify=False): """ Follow a user. Set `reblogs` to False to hide boosts by the followed user. + Set `notify` to True to get a notification every time the followed user posts. Returns a `relationship dict`_ containing the updated relationship to the user. """ -- cgit v1.2.3