diff --git a/server/api/models/event.js b/server/api/models/event.js index e771bcd9..4d638a9e 100644 --- a/server/api/models/event.js +++ b/server/api/models/event.js @@ -1,7 +1,5 @@ const config = require('config') const moment = require('moment-timezone') -const settingsController = require('../controller/settings') -// const debug = require('debug')('event:modals') module.exports = (sequelize, DataTypes) => { const Event = sequelize.define('event', { @@ -52,16 +50,16 @@ module.exports = (sequelize, DataTypes) => { ${this.description.length > 500 ? this.description.substr(0, 500) + '...' : this.description}
${tag_links}
` - const attachment = [] - if (this.image_path) { - attachment.push({ - type: 'Document', - mediaType: 'image/jpeg', - url: `${config.baseurl}/media/${this.image_path}`, - name: null, - blurHash: null - }) - } + // const attachment = [] + // if (this.image_path) { + // attachment.push({ + // type: 'Document', + // mediaType: 'image/jpeg', + // url: `${config.baseurl}/media/${this.image_path}`, + // name: null, + // blurHash: null + // }) + // } return { id: `${config.baseurl}/federation/m/${this.id}`, diff --git a/server/federation/users.js b/server/federation/users.js index 630b8ca6..b560d372 100644 --- a/server/federation/users.js +++ b/server/federation/users.js @@ -91,7 +91,7 @@ module.exports = { if (!name) { return res.status(400).send('Bad request.') } if (name !== req.settings.instance_name) { return res.status(404).send(`No record found for ${name}`) } - const events = await Event.findAll( { include: [Tag, Place] }) + const events = await Event.findAll({ include: [Tag, Place] }) debug('Inside outbox, should return all events from this user')