From 8f41c4736f8a13f9365e97b8c81c0a1d486ba95e Mon Sep 17 00:00:00 2001 From: posimai Date: Fri, 17 Apr 2026 23:37:22 +0900 Subject: [PATCH] feat(together): add 'read' to reaction type allowlist --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 73c4cb8d..e1ff08de 100644 --- a/server.js +++ b/server.js @@ -2603,7 +2603,7 @@ ${excerpt} r.post('/together/react', async (req, res) => { const { share_id, username, type = 'like' } = req.body || {}; if (!share_id || !username) return res.status(400).json({ error: 'share_id と username は必須です' }); - if (!['like', 'star', 'fire'].includes(type)) return res.status(400).json({ error: 'type は like/star/fire のみ有効です' }); + if (!['like', 'star', 'fire', 'read'].includes(type)) return res.status(400).json({ error: 'type は like/star/fire/read のみ有効です' }); try { // share の group に対してメンバーであることを確認 const memberCheck = await pool.query(