aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py7
1 files changed, 4 insertions, 3 deletions
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:
215 __DICT_VERSION_INSTANCE = bigger_version("3.1.4", __DICT_VERSION_ACCOUNT) 215 __DICT_VERSION_INSTANCE = bigger_version("3.1.4", __DICT_VERSION_ACCOUNT)
216 __DICT_VERSION_HASHTAG = "2.3.4" 216 __DICT_VERSION_HASHTAG = "2.3.4"
217 __DICT_VERSION_EMOJI = "3.0.0" 217 __DICT_VERSION_EMOJI = "3.0.0"
218 __DICT_VERSION_RELATIONSHIP = "3.2.0" 218 __DICT_VERSION_RELATIONSHIP = "3.3.0"
219 __DICT_VERSION_NOTIFICATION = bigger_version(bigger_version("1.0.0", __DICT_VERSION_ACCOUNT), __DICT_VERSION_STATUS) 219 __DICT_VERSION_NOTIFICATION = bigger_version(bigger_version("1.0.0", __DICT_VERSION_ACCOUNT), __DICT_VERSION_STATUS)
220 __DICT_VERSION_CONTEXT = bigger_version("1.0.0", __DICT_VERSION_STATUS) 220 __DICT_VERSION_CONTEXT = bigger_version("1.0.0", __DICT_VERSION_STATUS)
221 __DICT_VERSION_LIST = "2.1.0" 221 __DICT_VERSION_LIST = "2.1.0"
@@ -2098,12 +2098,13 @@ class Mastodon:
2098 ### 2098 ###
2099 # Writing data: Accounts 2099 # Writing data: Accounts
2100 ### 2100 ###
2101 @api_version("1.0.0", "2.4.3", __DICT_VERSION_RELATIONSHIP) 2101 @api_version("1.0.0", "3.3.0", __DICT_VERSION_RELATIONSHIP)
2102 def account_follow(self, id, reblogs=True): 2102 def account_follow(self, id, reblogs=True, notify=False):
2103 """ 2103 """
2104 Follow a user. 2104 Follow a user.
2105 2105
2106 Set `reblogs` to False to hide boosts by the followed user. 2106 Set `reblogs` to False to hide boosts by the followed user.
2107 Set `notify` to True to get a notification every time the followed user posts.
2107 2108
2108 Returns a `relationship dict`_ containing the updated relationship to the user. 2109 Returns a `relationship dict`_ containing the updated relationship to the user.
2109 """ 2110 """
Powered by cgit v1.2.3 (git 2.41.0)