aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <halcy@ARARAGI-KUN>2022-11-13 14:54:23 +0200
committerhalcy <halcy@ARARAGI-KUN>2022-11-13 14:54:23 +0200
commita17b20cfa142469019cd5982ba200510afc1f884 (patch)
treec7e79021572db7fbbf33a1b995e0532bf99a5d56 /mastodon
parentff489d8d3ef74725a86ed9999c9fa2c8cd32dfac (diff)
downloadmastodon.py-a17b20cfa142469019cd5982ba200510afc1f884.tar.gz
fix naming for featured tags
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index c3e3122..c55e006 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -2265,12 +2265,22 @@ class Mastodon:
2265 """ 2265 """
2266 Set a note (visible to the logged in user only) for the given account. 2266 Set a note (visible to the logged in user only) for the given account.
2267 2267
2268 returns a `status dict`_ with the `note` updated. 2268 Returns a `status dict`_ with the `note` updated.
2269 """ 2269 """
2270 id = self.__unpack_id(id) 2270 id = self.__unpack_id(id)
2271 params = self.__generate_params(locals(), ["id"]) 2271 params = self.__generate_params(locals(), ["id"])
2272 return self.__api_request('POST', '/api/v1/accounts/{0}/note'.format(str(id)), params) 2272 return self.__api_request('POST', '/api/v1/accounts/{0}/note'.format(str(id)), params)
2273 2273
2274 @api_version("3.3.0", "3.3.0", __DICT_VERSION_HASHTAG)
2275 def account_featured_tags(self, id):
2276 """
2277 Get an accounts featured hashtags.
2278
2279 Returns a list of `hashtag dicts`_ (NOT `featured tag dicts`_).
2280 """
2281 id = self.__unpack_id(id)
2282 return self.__api_request('GET', '/api/v1/accounts/{0}/featured_tags'.format(str(id)))
2283
2274 ### 2284 ###
2275 # Writing data: Featured hashtags 2285 # Writing data: Featured hashtags
2276 ### 2286 ###
Powered by cgit v1.2.3 (git 2.41.0)