Remove duplicate inboxes when constructing OutgoingActivity
This commit is contained in:
parent
4d31b9f9f9
commit
f2df270a82
1 changed files with 3 additions and 1 deletions
|
@ -208,8 +208,10 @@ impl OutgoingActivity {
|
|||
activity: impl Serialize,
|
||||
recipients: Vec<Actor>,
|
||||
) -> Self {
|
||||
let inboxes = recipients.into_iter()
|
||||
let mut inboxes: Vec<String> = recipients.into_iter()
|
||||
.map(|actor| actor.inbox).collect();
|
||||
inboxes.sort();
|
||||
inboxes.dedup();
|
||||
Self {
|
||||
instance: instance.clone(),
|
||||
sender: sender.clone(),
|
||||
|
|
Loading…
Reference in a new issue