diff options
| author | polwex <polwex@sortug.com> | 2025-10-06 08:25:12 +0700 |
|---|---|---|
| committer | polwex <polwex@sortug.com> | 2025-10-06 08:25:12 +0700 |
| commit | 6704650dcfccf609ccc203308df9004e0b511bb6 (patch) | |
| tree | bcc36657b338decb84a44e08fb42ffadf7e51924 /app/lib/mutations | |
| parent | 8426c0c275fc824ab55edef4fa99b3a9bacf64d8 (diff) | |
fixes to nostrill ws
Diffstat (limited to 'app/lib/mutations')
| -rw-r--r-- | app/lib/mutations/nostr.hoon | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/lib/mutations/nostr.hoon b/app/lib/mutations/nostr.hoon index 96ea6c6..6e1ab3e 100644 --- a/app/lib/mutations/nostr.hoon +++ b/app/lib/mutations/nostr.hoon @@ -3,7 +3,6 @@ /+ appjs=json-nostrill, lib=nostrill, - nlib=nostr, nreq=nostr-req, server, njs=json-nostr, @@ -17,11 +16,11 @@ ++ handle-client-event |= [wid=@ =event:nsur] ^- (quip card _state) ~& handling-client-event=event =. nostr-feed.state (put:norm:sur nostr-feed.state created-at.event event) - =/ profile (~(get by profiles.state [%nostr author.event])) + =/ profile (~(get by profiles.state) [%nostr pubkey.event]) :: TODO save if we're following? :: =/ pw (event-to-post:nlib event profile) - =/ response (ok-client-event event .n 'we\'re full') - =/ cs (ws-response:nreq response) + =/ response (ok-client-event:nreq event .n 'we\'re full') + =/ cs (ws-response:nreq wid response) [cs state] :: =/ l events.state :: =| cards=(list card:agent:gall) |
