From 3352d0095c4a01b25b59fbf141d02f07954c1eac Mon Sep 17 00:00:00 2001 From: npeter83 Date: Wed, 29 Jul 2026 02:10:00 +0200 Subject: [PATCH] fix(channels): only show the detail-page tag editor on subscribed channels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit attach_tag/detach_tag call _user_subscription, which 404s for a channel you don't follow — but the tag control was rendered for any non-demo channel, so tagging an un-subscribed/explored channel popped a global error + reverted the optimistic add. Gate the control on ch.subscribed (personal tags are for your subscriptions anyway). --- frontend/src/components/ChannelPage.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/ChannelPage.tsx b/frontend/src/components/ChannelPage.tsx index e3ce76d4..52f590f8 100644 --- a/frontend/src/components/ChannelPage.tsx +++ b/frontend/src/components/ChannelPage.tsx @@ -445,7 +445,10 @@ export default function ChannelPage({ {t("channel.subscribe")} ))} - {ch && !me.is_demo && ( + {/* Tagging is a subscription-scoped action (attach_tag → _user_subscription 404s + otherwise), and personal tags are for your subscriptions — so only offer it on a + channel you actually follow. */} + {ch?.subscribed && !me.is_demo && (