• Steven's avatar
    fix(web): fix explore page showing private tags and improve stats hook · 03c30b8c
    Steven authored
    The explore page sidebar was showing tags from the current user's private
    memos because the default ListMemos query applies a server-side OR filter
    (creator_id == X || visibility in [...]), mixing private content in.
    
    Fix by using a visibility-scoped ListMemos request in the explore context
    so private memos are always excluded via the AND'd server auth filter.
    
    Also consolidate two always-firing useMemos calls into one context-aware
    query, unify activity stats computation with countBy across all branches,
    and extract a toDateString helper to remove duplicated formatting logic.
    03c30b8c
Name
Last commit
Last update
..
docs Loading commit data...
public Loading commit data...
src Loading commit data...
.gitignore Loading commit data...
biome.json Loading commit data...
components.json Loading commit data...
index.html Loading commit data...
package.json Loading commit data...
pnpm-lock.yaml Loading commit data...
tsconfig.json Loading commit data...
vite.config.mts Loading commit data...