This commit is contained in:
les
2021-06-20 23:50:22 +02:00
parent df8f1121ab
commit 6dc9f7d261
4 changed files with 6 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ router.get('/m/:event_id', async (req, res) => {
const event = await Event.findByPk(req.params.event_id, { include: [User, Tag, Place] })
if (!event) { return res.status(404).send('Not found') }
return res.json(event.toAPNote(event.user.username, req.settings.locale))
return res.json(event.toAPNote(settingsController.settings.instance_name, req.settings.locale))
})
// get any message coming from federation

View File

@@ -9,8 +9,8 @@ module.exports = {
async setup (config, config_path) {
// generate a random salt
consola.info('Generate random salt')
config.secret = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15)
// consola.info('Generate random salt')
// config.secret = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15)
// do not save admin's password in config file
const admin = { email: config.admin.email, password: config.admin.password }