mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(notifications): default webpush notification agent to enabled for users for settings response
closes #1663
This commit is contained in:
@@ -84,7 +84,7 @@ router.use('/user', isAuthenticated(), user);
|
||||
router.get('/settings/public', async (req, res) => {
|
||||
const settings = getSettings();
|
||||
|
||||
if (!req.user?.settings?.notificationTypes.webpush) {
|
||||
if (!(req.user?.settings?.notificationTypes.webpush ?? true)) {
|
||||
return res
|
||||
.status(200)
|
||||
.json({ ...settings.fullPublicSettings, enablePushRegistration: false });
|
||||
|
Reference in New Issue
Block a user