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

bug: setting presence and clearing status text at once causes 500 #392

Open
MCausc78 opened this issue Jan 7, 2025 · 0 comments
Open

bug: setting presence and clearing status text at once causes 500 #392

MCausc78 opened this issue Jan 7, 2025 · 0 comments

Comments

@MCausc78
Copy link

MCausc78 commented Jan 7, 2025

What happened?

Title

Reproduce:

$ curl -X PATCH https://api.revolt.chat/0.8/users/@me -d '{"status":{"presence":"Invisible"},"remove":["StatusText"]}' -H "X-Session-Token: $TOKEN"
{"type":"DatabaseError","operation":"update_one_by_id","collection":"users","location":"crates/core/database/src/models/users/ops/mongodb.rs:227:9"}

Original code:

await self.http.edit_my_user(status=pyvolt.UserStatusEdit(presence=pyvolt.Presence.invisible, text=None))
@github-project-automation github-project-automation bot moved this to 🆕 Untriaged in Revolt Project Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 Untriaged
Development

No branches or pull requests

1 participant