muni-town / weird

Weird web pages
https://weird.one
Other
44 stars 12 forks source link

fix: publicly accesible mastodon access token through iroh #133

Closed kimlimjustin closed 3 months ago

kimlimjustin commented 3 months ago

As the user profile is accessible publicly through Iroh, this makes mastodon_access_token accessible to everyone. This PR sets every mastodon_access_token to Null and substitute the usage of mastodon_access_token

zicklag commented 3 months ago

Can you add something here, that loops through all the profiles ( see here for how to list profiles ), and then for each profile sets the mastodon token to Null?

That way users don't have to go in and save their profile to clean up the token.

It's no big deal to do it every time that the server starts up since we'll be removing the code soon anyway.

kimlimjustin commented 3 months ago

Updated the code, could you please check if it's correct or not as I'm not that familiar to Iroh

zicklag commented 3 months ago

I'm going to try and deploy this later today or tomorrow, after sending out the notice email.