Phuks-co / throat

Open Source link aggregator and discussion platform powering Phuks
https://phuks.co
MIT License
73 stars 32 forks source link

Fix notifications not appearing after password reset #182

Closed happy-river closed 4 years ago

happy-river commented 4 years ago

misc.get_id returns the user's login id, which used to be the same as the user's uid until #85, which made the login id change every time the user does a password reset, in order to invalidate their old login sessions. The queries that get notifications and messages were using current_user.get_id() so they were only working for users who were still using their original password. Change them to use current_user.uid.