fix :nsfw not bluring

This commit is contained in:
Damien Ostler 2024-05-27 11:38:38 -04:00
parent 052bc21604
commit adfab3585b

View File

@ -66,6 +66,9 @@ export async function GET(
} }
break; break;
default: default:
if(gallery.nsfw){
blobBuffer = await blurImage(blobBuffer);
}
break; break;
} }
const contentType = files[0].name.endsWith('.png') ? 'image/png' : 'image/jpeg'; const contentType = files[0].name.endsWith('.png') ? 'image/png' : 'image/jpeg';