fix ordering on search, copy note
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
1 parent
cac139fff1
commit
bd49c8a9d1
5 files changed
+22
-5
No files matched your search
@@ -354,3 +354,14 @@ func gather_reply_ids(our_pubkey: String, from: NostrEvent) -> [ReferencedId] {
|
||||
}
|
||||
return ids
|
||||
}
|
||||
|
||||
func event_to_json(ev: NostrEvent) -> String {
|
||||
let encoder = JSONEncoder()
|
||||
guard let res = try? encoder.encode(ev) else {
|
||||
return "{}"
|
||||
}
|
||||
guard let str = String(data: res, encoding: .utf8) else {
|
||||
return "{}"
|
||||
}
|
||||
return str
|
||||
}
|
||||
Reference in new issue
Block a user