aboutsummaryrefslogtreecommitdiffstats
path: root/tools/feed-switch-seed-test.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-07 08:40:21 -0700
committerAdam Soltys <[email protected]>2026-10-07 08:40:21 -0700
commit3aff6e4cc9eb97fc0fa488f1f95001f69f24330a (patch)
tree932ed498851f9e2167a1c1419c96d630be0d02e2 /tools/feed-switch-seed-test.js
parent6d288aeb194d2765282cf9fd72bd1f5fdd747a71 (diff)
parent6c51dcf2542314d5fe883f756f0840ef51860d67 (diff)
downloadcoinosv3-3aff6e4cc9eb97fc0fa488f1f95001f69f24330a.tar.gz
coinosv3-3aff6e4cc9eb97fc0fa488f1f95001f69f24330a.zip
Merge branch 'worktree-agent-ad1d843e9e394974e'
Diffstat (limited to 'tools/feed-switch-seed-test.js')
-rw-r--r--tools/feed-switch-seed-test.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/feed-switch-seed-test.js b/tools/feed-switch-seed-test.js
index e747744..1bad161 100644
--- a/tools/feed-switch-seed-test.js
+++ b/tools/feed-switch-seed-test.js
@@ -81,8 +81,9 @@ try {
localStorage.setItem(k + ':feedNotes', JSON.stringify(ns));
localStorage.setItem(k + ':profiles', JSON.stringify({ [a]: { name: 'Alice', t }, [b]: { name: 'Bob', t } }));
const s = JSON.parse(localStorage.getItem(k + ':messages') || '{}');
- s.feeds = [{ id: 'bob', name: 'Bobfeed', follows: false, authors: [b], topics: [], packs: [] },
- { id: 'btc', name: 'Btcfeed', follows: false, authors: [], topics: ['bitcoin'], packs: [] }];
+ // (a feed carries its edit time, as the editor writes it: the feeds sync merge drops one without)
+ s.feeds = [{ id: 'bob', name: 'Bobfeed', follows: false, authors: [b], topics: [], packs: [], at: t },
+ { id: 'btc', name: 'Btcfeed', follows: false, authors: [], topics: ['bitcoin'], packs: [], at: t }];
localStorage.setItem(k + ':messages', JSON.stringify(s));
localStorage.setItem('btc-wallet-feed:' + k, 'following'); // this wallet's last feed
}, [base, PK_A, PK_B, alice]);