• 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
.github Loading commit data...
cmd/memos Loading commit data...
internal Loading commit data...
plugin Loading commit data...
proto Loading commit data...
scripts Loading commit data...
server Loading commit data...
store Loading commit data...
web Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
.golangci.yaml Loading commit data...
AGENTS.md Loading commit data...
CODEOWNERS Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...