Merge branch 'master' into feat/mediaFocalAlt

This commit is contained in:
les
2021-07-19 12:33:12 +02:00
8 changed files with 283 additions and 253 deletions

View File

@@ -10,7 +10,7 @@ module.exports = {
if (typeof body.object !== 'string') { return }
const username = body.object.replace(`${config.baseurl}/federation/u/`, '')
if (username !== req.settings.instance_name) {
log.warn(`Following the wrong user: ${username} instead of ${req.settings.instance_name}`)
log.warn(`Following the wrong user: ${username} instead of ${req.settings.instance_name} (could be a wrong config.baseurl)`)
return res.status(404).send('User not found')
}

View File

@@ -43,7 +43,7 @@ const notifier = {
// insert notifications
const notifications = await eventController.getNotifications(event, action)
await event.addNotifications(notifications)
const event_notifications = await event.getNotifications()
const event_notifications = await event.getNotifications({ through: { where: { status: 'new' } } })
const promises = event_notifications.map(async notification => {
try {