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

API: Inconsistency between GET /settings/profile and PUT /settings/profile #2877

Open
marhei opened this issue Aug 21, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@marhei
Copy link
Contributor

marhei commented Aug 21, 2024

If the user has disabled automatic status hiding, the privacyHideDays key will return 0, but you need to set the same key to null on the PUT /settings/profile endpoint to avoid getting an error that it should be at least 1. For consistency, the GET /settings/profile endpoint should also return null if this option is disabled.

@marhei marhei added the bug Something isn't working label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant