Skip to content

Commit

Permalink
Merge pull request #397 from nextcloud/backport/394/stable20
Browse files Browse the repository at this point in the history
[stable20] Fixed the case when multiple announcements are added for the same gro…
  • Loading branch information
nickvergessen authored Sep 22, 2021
2 parents 907dac4 + 2869555 commit ff94dbd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/BackgroundJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ protected function createPublicity(Announcement $announcement, array $publicity)
if (\in_array('everyone', $groups, true)) {
$this->createPublicityEveryone($announcement->getUser(), $event, $notification, $publicity);
} else {
$this->notifiedUsers = [];
$this->createPublicityGroups($announcement->getUser(), $event, $notification, $groups, $publicity);
}
}
Expand Down

0 comments on commit ff94dbd

Please sign in to comment.