Fix: sense of redacted handling

This commit is contained in:
Mike Dilger 2025-02-21 09:05:15 +13:00
parent db8b29dfc4
commit fb1bf64062
No known key found for this signature in database
GPG Key ID: 47581A78D4329BA4

View File

@ -209,13 +209,13 @@ impl WebSocketService {
if completes {
// Closed
let reply = if redacted {
NostrReply::Closed(subid, NostrReplyPrefix::None, "".to_owned())
} else {
NostrReply::Closed(
subid,
NostrReplyPrefix::Redacted,
"Some matching events could not be served to you.".to_owned(),
)
} else {
NostrReply::Closed(subid, NostrReplyPrefix::None, "".to_owned())
};
self.send(Message::text(reply.as_json())).await?;
} else {