Brozy123 commited on
Commit
a0a8390
·
verified ·
1 Parent(s): 8ae1c7b

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -1
server.js CHANGED
@@ -439,7 +439,7 @@ app.get('/api/config/:guildId', requireAuth, (req, res) => {
439
  autoFriendlyEnabled: config.autoFriendlyEnabled || false,
440
  autoFriendlyInterval: config.autoFriendlyInterval || 40,
441
  autoFriendlyChannel: config.autoFriendlyChannel || null,
442
- postEnabled: config.postEnabled !== false, // Default to true
443
  postChannelId: config.postChannelId || null
444
  });
445
  });
 
439
  autoFriendlyEnabled: config.autoFriendlyEnabled || false,
440
  autoFriendlyInterval: config.autoFriendlyInterval || 40,
441
  autoFriendlyChannel: config.autoFriendlyChannel || null,
442
+ postEnabled: !!config.postEnabled, // Default to false (off)
443
  postChannelId: config.postChannelId || null
444
  });
445
  });