From a17b20cfa142469019cd5982ba200510afc1f884 Mon Sep 17 00:00:00 2001 From: halcy Date: Sun, 13 Nov 2022 14:54:23 +0200 Subject: fix naming for featured tags --- mastodon/Mastodon.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'mastodon') 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: """ Set a note (visible to the logged in user only) for the given account. - returns a `status dict`_ with the `note` updated. + Returns a `status dict`_ with the `note` updated. """ id = self.__unpack_id(id) params = self.__generate_params(locals(), ["id"]) return self.__api_request('POST', '/api/v1/accounts/{0}/note'.format(str(id)), params) + @api_version("3.3.0", "3.3.0", __DICT_VERSION_HASHTAG) + def account_featured_tags(self, id): + """ + Get an accounts featured hashtags. + + Returns a list of `hashtag dicts`_ (NOT `featured tag dicts`_). + """ + id = self.__unpack_id(id) + return self.__api_request('GET', '/api/v1/accounts/{0}/featured_tags'.format(str(id))) + ### # Writing data: Featured hashtags ### -- cgit v1.2.3