From f247eb1de2941c4ef51378f0b773d1d2a1434c7f Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 7 Oct 2026 08:26:57 -0700 Subject: Feed URLs: the default feed is not opened (and fetched) a tick before the URL's MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A /feed?r=… (or any /feed/… link) set the feed view up synchronously but chose its feed in a setTimeout, so the first paint opened the remembered/ default feed — Popular since c89050e — and fetched the shared snapshot for it before switching. The frame now holds (header only) for that tick, the way a note link's pending frame does. public-feed-browser-test: custom relays bypass the snapshot again. Co-Authored-By: Claude Opus 5.5 --- src/features/messages.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/features') diff --git a/src/features/messages.js b/src/features/messages.js index 02a19b4..241ab5c 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -2149,7 +2149,11 @@ export function messagesFeature(ctx) { // public data, and Back lands on the app's own front door. if (urlFeed) { ui.pubProf = true; ui.chatOpen = true; ui.msgView = 'feed'; + // hold the frame until the URL's feed is chosen: painted a tick early, + // the feed view would open (and fetch) the default feed first + ui.pubFeedPending = true; setTimeout(() => { + ui.pubFeedPending = null; if (openFeedUrl(urlFeed.path, urlFeed.search)) return; ui.pubProf = null; ui.chatOpen = false; ui.msgView = null; // not a feed we know: the front door render(); @@ -12829,6 +12833,7 @@ export function messagesFeature(ctx) { ctx.brandHeader(false), h('div', { class: 'card row gap6', style: 'justify-content:center;align-items:center;padding:16px' }, h('span', { class: 'spinner sm' }), h('span', { class: 'small faint' }, t('noteRefLoading')))); + if (ui.pubFeedPending) return h('div', { class: 'col', style: 'gap:16px' }, ctx.brandHeader(false)); if (ui.pubProfPending) return h('div', { class: 'col', style: 'gap:16px' }, ctx.brandHeader(false), h('div', { class: 'card col', style: 'gap:12px' }, -- cgit v1.2.3