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
fix(server, web): prevent reload when liking an asset #7589
Conversation
Deploying with Cloudflare Pages
|
I think we should always send them since they will be sent eventually when a user can do those actions. |
Currently, only owners can archive and favorite assets, but the day when we'll implement a mechanism so all users can like and/or archive assets, we'll have to update the backend and the frontend logic, so it's more maintenance. And I don't really like the fact we're sending incorrect information. |
Sending false is not incorrect. The asset is not favorited by the user. It may change to true in the future in which case I don't think it makes sense to have deleted it from the response payload. |
6eccd1f
to
96b5535
Compare
96b5535
to
c8ed35f
Compare
c8ed35f
to
afb51d4
Compare
This PR prevents photo viewer from reloading when you like an asset