mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-19 05:55:34 +09:00
fix: allow POST /users/@me/channels with recipient_id 0 (#1160)
This commit is contained in:
1 parent
a45693f581
commit
41ec2544cf
4 files changed
+50
-4
No files matched your search
@@ -79,4 +79,11 @@ describe('CreatePrivateChannelRequest', () => {
|
||||
);
|
||||
expect(CreatePrivateChannelRequest.safeParse({recipients}).success).toBe(false);
|
||||
});
|
||||
it('allows DM requests to the system user id 0', () => {
|
||||
const parsed = CreatePrivateChannelRequest.safeParse({recipient_id: '0'});
|
||||
expect(parsed.success).toBe(true);
|
||||
if (parsed.success) {
|
||||
expect(parsed.data.recipient_id).toBe(0n);
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user