From 1df24a8655059714d0420b2a239933ca2c0192de Mon Sep 17 00:00:00 2001 From: "Nik (Claude)" Date: Mon, 8 Jun 2026 15:28:17 +0300 Subject: [PATCH] fix: calendar shows only user's own channels, not system blog channel --- src/routes/calendar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/calendar.js b/src/routes/calendar.js index 5e44ebc..c6527e6 100644 --- a/src/routes/calendar.js +++ b/src/routes/calendar.js @@ -96,7 +96,7 @@ router.get('/', async (req, res) => { } else { // Только каналы этого юзера (или системные) spParams.push(userId); - spWhere += ` AND (c.user_id = $${spParams.length} OR c.is_system = true)`; + spWhere += ` AND c.user_id = ${spParams.length}`; } const { rows: schedPosts } = await query(