fix: 500 server error when files.create request is closed by client (#5878)
This commit is contained in:
@@ -41,7 +41,7 @@ router.post(
|
||||
rejectOnEmpty: true,
|
||||
});
|
||||
|
||||
if (attachment?.userId !== actor.id) {
|
||||
if (attachment.userId !== actor.id) {
|
||||
throw AuthorizationError("Invalid key");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user