From 3ef1d4bdcbba1bb482396dac2e1109968b5aa581 Mon Sep 17 00:00:00 2001
From: Lamp <lamp@owo69.me>
Date: Thu, 25 Nov 2021 18:16:10 -0800
Subject: [PATCH] draw only id on thumb_mini

---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 002320f..b8e9ee6 100644
--- a/index.js
+++ b/index.js
@@ -67,7 +67,7 @@ async function serveId(id, req, res, next) {
 		res.header("X-Pixiv-Id", id);
 		if (req.query.auto) res.header("Refresh", `${Number(req.query.auto)}; url=${getRandomUrl(req)}`);
 		if (req.query.drawsource != null && pxreq.headers.get("Content-Type").startsWith("image")) {
-			gm(pxreq.body).drawText(2, 12, `https://www.pixiv.net/en/artworks/${id}`).stream().pipe(res);
+			gm(pxreq.body).drawText(2, 12, size == "thumb_mini" ? id : `https://www.pixiv.net/en/artworks/${id}`).stream().pipe(res);
 		}
 		else pxreq.body.pipe(res);