From 6704650dcfccf609ccc203308df9004e0b511bb6 Mon Sep 17 00:00:00 2001 From: polwex Date: Mon, 6 Oct 2025 08:25:12 +0700 Subject: fixes to nostrill ws --- app/lib/mutations/nostr.hoon | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'app/lib/mutations') 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) -- cgit v1.2.3