Skip to content

Commit

Permalink
Merge pull request #11509 from nanaya/announce-user-limit
Browse files Browse the repository at this point in the history
Allow more users for chat announcement
  • Loading branch information
notbakaneko authored Sep 27, 2024
2 parents 2107c9f + 569dc2c commit 57d2c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Libraries/Chat.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static function createAnnouncement(User $sender, array $rawParams)
throw new InvariantException('missing channel parameter');
}

$users = User::whereIn('user_id', $params['target_ids'])->get();
$users = User::find($params['target_ids']);
if ($users->isEmpty()) {
throw new InvariantException('Nobody to broadcast to!');
}
Expand Down

0 comments on commit 57d2c7a

Please sign in to comment.