Skip to content

Commit 7192343

Browse files
committed
Fix user ignores
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent 242e3ca commit 7192343

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

notification/method/webpush.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ protected function notify_using_webpush(): void
188188

189189
// Load all the users we need
190190
$notify_users = array_diff($user_ids, $banned_users);
191-
$this->user_loader->load_users($notify_users, array(USER_IGNORE));
191+
$this->user_loader->load_users($notify_users, [USER_IGNORE]);
192192

193193
// Get subscriptions for users
194194
$user_subscription_map = $this->get_user_subscription_map($notify_users);

ucp/controller/webpush.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ private function get_notification_data(string $notification_data): string
229229
$notification = $this->notification_manager->get_item_type_class($row_data['notification_type_name'], $row_data);
230230

231231
// Load users for notification
232-
$this->user_loader->load_users($notification->users_to_query());
232+
$this->user_loader->load_users($notification->users_to_query(), [USER_IGNORE]);
233233

234234
return json_encode([
235235
'heading' => $this->config['sitename'],

0 commit comments

Comments
 (0)