purifyEvent: function signature
This commit is contained in:
parent
09369a0122
commit
04cdbd11c9
|
@ -30,7 +30,7 @@ async function hydrateEvents(opts: HydrateEventOpts): Promise<DittoEvent[]> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Return a normalized event without any non-standard keys. */
|
/** Return a normalized event without any non-standard keys. */
|
||||||
function purifyEvent(event: DittoEvent): NostrEvent {
|
function purifyEvent(event: NostrEvent): NostrEvent {
|
||||||
return {
|
return {
|
||||||
id: event.id,
|
id: event.id,
|
||||||
pubkey: event.pubkey,
|
pubkey: event.pubkey,
|
||||||
|
|
Loading…
Reference in New Issue