From 257afa01a096346300062f5dfa6517544b982ded Mon Sep 17 00:00:00 2001 From: Eli Mallon Date: Thu, 30 Apr 2026 12:40:26 -0700 Subject: [PATCH] Warn loudly when ?streamer=... URL param is missing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Streamer (goose.art): "I think its actually not filtering by stream at all / like afaict some people have not sent messages to this stream specifically". Diagnosis: the overlay only filters chat to a stream when the URL has a `?streamer=did:...` parameter. Without it, every chat message from every stream on the network passes through, which is exactly what goose.art is observing — pets appearing for people who chat in unrelated streams. Code already handles both cases correctly; this is a config issue. Made the filter-off state visible by replacing the corner version label with an orange-on-black warning that names the missing parameter, so the streamer (or anyone setting up the browser source) sees it without having to read the console or look at the existing status overlay (which is hidden by default). Filtered mode keeps the unobtrusive "pets v0.8.0 · 2026-04-30" label. Co-Authored-By: Claude Opus 4.7 (1M context) --- pets.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pets.html b/pets.html index 7640cc1..5324c0e 100644 --- a/pets.html +++ b/pets.html @@ -2068,7 +2068,18 @@ function scheduleReconnect() { // Build version: bumped each commit so chat can see new code arrived. const BUILD_VERSION = 'v0.8.0'; const BUILD_DATE = '2026-04-30'; -document.getElementById('version').textContent = `pets ${BUILD_VERSION} · ${BUILD_DATE}`; +const versionEl = document.getElementById('version'); +if (STREAMER_DID) { + versionEl.textContent = `pets ${BUILD_VERSION} · ${BUILD_DATE}`; +} else { + // Visible warning so the streamer notices the filter is off — without a + // ?streamer=did:... URL param, every chat from every stream lands on stage. + versionEl.textContent = `pets ${BUILD_VERSION} · NO STREAMER FILTER — add ?streamer=did:... to the URL`; + versionEl.style.color = 'rgba(255, 180, 80, 0.95)'; + versionEl.style.background = 'rgba(0, 0, 0, 0.55)'; + versionEl.style.padding = '2px 6px'; + versionEl.style.borderRadius = '4px'; +} // "Reloaded" toast — pops up briefly when the page (re)loads. { -- 2.51.2