feat(together): add 'read' to reaction type allowlist

This commit is contained in:
posimai 2026-04-17 23:37:22 +09:00
parent 59b8ff76ea
commit 8f41c4736f
1 changed files with 1 additions and 1 deletions

View File

@ -2603,7 +2603,7 @@ ${excerpt}
r.post('/together/react', async (req, res) => { r.post('/together/react', async (req, res) => {
const { share_id, username, type = 'like' } = req.body || {}; const { share_id, username, type = 'like' } = req.body || {};
if (!share_id || !username) return res.status(400).json({ error: 'share_id と username は必須です' }); 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 { try {
// share の group に対してメンバーであることを確認 // share の group に対してメンバーであることを確認
const memberCheck = await pool.query( const memberCheck = await pool.query(