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

Mastodon Node: app client error #276

Closed
steve-bate opened this issue Jul 31, 2024 · 2 comments
Closed

Mastodon Node: app client error #276

steve-bate opened this issue Jul 31, 2024 · 2 comments

Comments

@steve-bate
Copy link
Member

The _mastodon_app_client is initialized as:

self._mastodon_app_client = Mastodon.create_app('feditest', api_base_url=app_base_url)

The result is a tuple (client_id, client_secret). Later, in UserRecord.mastodon_user_client, there is code to copy it, which is not valid for a tuple.

    def mastodon_user_client(self, mastodon_app_client):
        if not self._mastodon_user_client:
            self._mastodon_user_client = mastodon_app_client.copy() # <--  Can't copy a tuple.
        ...
@steve-bate steve-bate changed the title Mastodon Node app client error Mastodon Node: app client error Jul 31, 2024
@jernst
Copy link
Member

jernst commented Aug 2, 2024

Silly me.

@jernst
Copy link
Member

jernst commented Sep 16, 2024

Done in #333.

@jernst jernst closed this as completed Sep 16, 2024
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