fix: dedupe thread pubkeys

This commit is contained in:
Alejandro Gomez 2023-01-06 14:00:59 +01:00
parent 0d67612581
commit fcbbee4034
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817

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