feat(together): add 'read' to reaction type allowlist
This commit is contained in:
parent
59b8ff76ea
commit
8f41c4736f
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue