Glimesh / glimesh.tv

Glimesh is a next generation live streaming platform built by the community, for the community.
https://glimesh.tv
Other
461 stars 77 forks source link

Disconnecting your twitter account does not remove the account name from the users table #890

Closed MemoryLeakDeath closed 1 year ago

MemoryLeakDeath commented 1 year ago

Fixes #359

When disconnecting your twitter account from the profile settings page, the record in the "user_socials" table is removed but the "social_twitter" column in the "users" table is not cleared out. This can cause confusion on the part of the users where they think the system still remembers their disconnected account name and there is no current way on the UI to clear that out. This fix clears out the "social_twitter" column when the user clicks the disconnect twitter account button.

As reported on discord: image

I've also included a migration script that will null out any "social_twitter" columns where there is not a corresponding record in the "user_socials" table for the user.