Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any plans to allow retrieving of followed tags? #309

Open
BackSeat opened this issue Jan 6, 2023 · 2 comments
Open

Any plans to allow retrieving of followed tags? #309

BackSeat opened this issue Jan 6, 2023 · 2 comments

Comments

@BackSeat
Copy link

BackSeat commented Jan 6, 2023

I appreciate it's a v4 function. I put this together as proof of concept and it seems to work, but I wouldn't claim to have tested it comprehensively.

    @api_version("4.0.0", "4.0.0", _DICT_VERSION_ACCOUNT)
    def tag_following(self, max_id=None, min_id=None, since_id=None, limit=None):
        """
        Fetch tags the given user is following.

        Returns a list of tags dicts
        """
        if max_id is not None:
            max_id = self.__unpack_id(max_id, dateconv=True)

        if min_id is not None:
            min_id = self.__unpack_id(min_id, dateconv=True)

        if since_id is not None:
            since_id = self.__unpack_id(since_id, dateconv=True)

        params = self.__generate_params(locals(), ['id'])
        url = '/api/v1/followed_tags'
        return self.__api_request('GET', url, params)
@halcy
Copy link
Owner

halcy commented Jan 6, 2023

Oh, 4.x support is definitely planned. I just haven't gotten to it, I kind of burned myself out in december and figured it'd be a good time for a break for a bit. I'll probably start working on 4.0 features in earnest latter half of January, and when that time comes, I'll gladly merge that in and write some tests for it.

@BackSeat
Copy link
Author

BackSeat commented Jan 6, 2023

Sounds good, thank you for providing Mastodon.py in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants