diff --git a/server/api/models/event.js b/server/api/models/event.js index 1af292a6..da344314 100644 --- a/server/api/models/event.js +++ b/server/api/models/event.js @@ -72,7 +72,7 @@ module.exports = (sequelize, DataTypes) => { } return { - id: `${config.baseurl}/federation/m/${this.id}`, + id: this?.ap_id ?? `${config.baseurl}/federation/m/${this.id}`, name: this.title, url: `${config.baseurl}/event/${this.slug || this.id}`, type: 'Event',