diff options
| author | polwex <polwex@sortug.com> | 2025-11-18 16:58:46 +0700 |
|---|---|---|
| committer | polwex <polwex@sortug.com> | 2025-11-18 16:58:46 +0700 |
| commit | 76f99af3c98a689441315b5ed087c4b83c083191 (patch) | |
| tree | b51182eda47f4b3311c352a86d8256e417af4db5 /app/lib/json/nostr.hoon | |
| parent | a465c73178dc621578d10312f263355f0f2d5309 (diff) | |
refactooooring
Diffstat (limited to 'app/lib/json/nostr.hoon')
| -rw-r--r-- | app/lib/json/nostr.hoon | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/app/lib/json/nostr.hoon b/app/lib/json/nostr.hoon index ca4ed43..0b1a79a 100644 --- a/app/lib/json/nostr.hoon +++ b/app/lib/json/nostr.hoon @@ -77,10 +77,10 @@ ++ tags - |= tm=(map @t (set @t)) ^- (list [@t json]) :: entries to the filter obeject - %+ turn ~(tap by tm) |= [key=@t values=(set @t)] + |= tm=(map @t (list @t)) ^- (list [@t json]) :: entries to the filter obeject + %+ turn ~(tap by tm) |= [key=@t values=(list @t)] =/ nkey (cat 3 '#' key) - [nkey %a (turn ~(tap in values) cord:en:common)] + [nkey %a (turn values cord:en:common)] ++ user-meta |= meta=user-meta:sur @@ -212,9 +212,8 @@ :: :: anything else is a tag =/ vl ((ar so) +.entry) ?~ vl f - =/ ctags ?~ tags.f *(map @t (set @t)) u.tags.f - =/ values (silt u.vl) - =/ ntags (~(put by ctags) -.entry values) + =/ ctags ?~ tags.f *(map @t (list @t)) u.tags.f + =/ ntags (~(put by ctags) -.entry u.vl) f(tags `ntags) $(entries t.entries) |
