Skip to content

Commit 05152f8

Browse files
committed
avoid duplicate recipients
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
1 parent 48e32c4 commit 05152f8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/GlobalScale/MemberAdd.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,13 @@ public function result(array $events): void {
214214
$recipients = [$member->getUserId()];
215215
}
216216

217+
$done = [];
217218
foreach ($recipients as $recipient) {
219+
if (in_array($recipient, $done)) {
220+
continue;
221+
}
222+
223+
$done[] = $recipient;
218224
$this->memberIsMailbox($circle, $recipient, $links, $password);
219225
}
220226
}

0 commit comments

Comments
 (0)