fix: dedupe thread pubkeys
This commit is contained in:
parent
0d67612581
commit
fcbbee4034
@ -41,7 +41,7 @@ export default class Thread {
|
||||
ret.ReplyTo = reply;
|
||||
ret.Mentions = eTags.filter(a => a.Marker === "mention");
|
||||
}
|
||||
ret.PubKeys = ev.Tags.filter(a => a.Key === "p").map(a => a.PubKey);
|
||||
ret.PubKeys = [...new Set(ev.Tags.filter(a => a.Key === "p").map(a => a.PubKey))]
|
||||
return ret;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user