Skip to content

Commit

Permalink
Don't require email templates presence for webpush notifications. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rxu committed Nov 28, 2024
1 parent 6ab4e67 commit f6dcfc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notification/method/webpush.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function get_type(): string
*/
public function is_available(type_interface $notification_type = null): bool
{
return parent::is_available($notification_type) && $this->config['wpn_webpush_enable']
return $this->config['wpn_webpush_enable']
&& !empty($this->config['wpn_webpush_vapid_public']) && !empty($this->config['wpn_webpush_vapid_private']);
}

Expand Down

0 comments on commit f6dcfc7

Please sign in to comment.