fix: dedupe thread pubkeys #7

Merged
verbiricha merged 1 commits from dedupe-pubkeys into main 2023-01-06 13:03:18 +00:00
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}