Spaces:
Runtime error
Runtime error
Update server.js
Browse files
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
|
| 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 |
});
|