rename cracked to noauth and remove the possibility to self register as such
This commit is contained in:
		| @@ -13,7 +13,9 @@ export const POST = (async ({ request, url }) => { | ||||
| 	if (data.reporter == null || data.reason == null) return new Response(null, { status: 400 }); | ||||
|  | ||||
| 	const reporter = await User.findOne({ where: { uuid: data.reporter } }); | ||||
| 	const reported = data.reported ? await User.findOne({ where: { uuid: data.reported } }) : undefined; | ||||
| 	const reported = data.reported | ||||
| 		? await User.findOne({ where: { uuid: data.reported } }) | ||||
| 		: undefined; | ||||
|  | ||||
| 	if (reporter == null || reported === null) return new Response(null, { status: 400 }); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user