Rename pubkeys to profiles (NIP-10)

This commit is contained in:
futpib
2023-04-02 16:50:42 +04:00
committed by fiatjaf_
parent 7413072e9f
commit ce081bb4cb
2 changed files with 8 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ export type NIP10Result = {
/**
* List of pubkeys that are involved in the thread in no particular order.
*/
pubkeys: ProfilePointer[]
profiles: ProfilePointer[]
}
export function parse(event: Pick<Event, 'tags'>): NIP10Result {
@@ -28,7 +28,7 @@ export function parse(event: Pick<Event, 'tags'>): NIP10Result {
reply: undefined,
root: undefined,
mentions: [],
pubkeys: []
profiles: []
}
const eTags: string[][] = []
@@ -39,7 +39,7 @@ export function parse(event: Pick<Event, 'tags'>): NIP10Result {
}
if (tag[0] === 'p' && tag[1]) {
result.pubkeys.push({
result.profiles.push({
pubkey: tag[1],
relays: tag[2] ? [tag[2]] : []
})