fix: use original ap_id as id in AP representation, ref #472

This commit is contained in:
lesion 2024-10-09 18:12:36 +02:00
parent 8082e46a46
commit 74af4b4e31
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -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',