mirror of
https://github.com/aljazceru/ditto.git
synced 2026-02-09 07:24:21 +01:00
purifyEvent: function signature
This commit is contained in:
@@ -30,7 +30,7 @@ async function hydrateEvents(opts: HydrateEventOpts): Promise<DittoEvent[]> {
|
||||
}
|
||||
|
||||
/** Return a normalized event without any non-standard keys. */
|
||||
function purifyEvent(event: DittoEvent): NostrEvent {
|
||||
function purifyEvent(event: NostrEvent): NostrEvent {
|
||||
return {
|
||||
id: event.id,
|
||||
pubkey: event.pubkey,
|
||||
|
||||
Reference in New Issue
Block a user