mirror of
https://github.com/hoornet/vega.git
synced 2026-06-08 22:21:55 -07:00
6a23f0223c
WoT was previously global-feed only. Now it filters notes on every feed tab (global, following, trending) and also gates reaction pills and zap totals — so a reaction from someone outside your social graph no longer shows up in the counts. - engagement.ts: wotSet param threaded through groupReactions, fetchReactions, fetchZapCount, fetchBatchEngagement. Zaps are filtered by the pubkey inside the zap request (the actual zapper), not the outer event.pubkey (the LNURL wallet). Extracted getZapperPubkey and getZapAmountSats. - useReactions / useZapCount: cache key embeds WoT state so filtered and unfiltered counts don't collide. Hooks subscribe to the WoT store so toggling re-renders. - feed store: reads WoT state and passes wotSet to fetchBatchEngagement, seeds cache with the correct key. - Feed.tsx: drop the tab === "global" guard. - SettingsView.tsx: update copy to reflect the wider scope.