mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
fix: Avoid serialising a raw string
Database safety: This is equivalent, as top level strings are directly serialised as byte arrays when not wrapped in a serialisation newtype
This commit is contained in:
@@ -366,7 +366,7 @@ pub async fn mark_as_invited(
|
|||||||
.raw_aput::<8, _, _>(&roomuser_id, self.services.globals.next_count().unwrap());
|
.raw_aput::<8, _, _>(&roomuser_id, self.services.globals.next_count().unwrap());
|
||||||
self.db
|
self.db
|
||||||
.userroomid_invitesender
|
.userroomid_invitesender
|
||||||
.raw_put(&userroom_id, sender_user);
|
.insert(&userroom_id, sender_user);
|
||||||
|
|
||||||
self.db.userroomid_joined.remove(&userroom_id);
|
self.db.userroomid_joined.remove(&userroom_id);
|
||||||
self.db.roomuserid_joined.remove(&roomuser_id);
|
self.db.roomuserid_joined.remove(&roomuser_id);
|
||||||
|
|||||||
Reference in New Issue
Block a user