This commit is contained in:
2024-05-30 12:51:10 +08:00
parent 7d0d6686fd
commit a16ff98225

View File

@@ -15,7 +15,8 @@ export const handler: Handlers = {
if (u && !u.is_admin && !(u.permissions & UserPermission.ReadGallery)) {
return return_error(403, "Permission denied.");
}
const ids = ctx.params.id.split(",");
const ids = decodeURIComponent(ctx.params.id.replaceAll("+", "%20"))
.split(",");
const r: Record<string, JSONResult<Tag>> = {};
for (const _id of ids) {
const id = parseInt(_id);