mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
fix: use original ap_id as id in AP representation, ref #472
This commit is contained in:
parent
8082e46a46
commit
74af4b4e31
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ module.exports = (sequelize, DataTypes) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id: `${config.baseurl}/federation/m/${this.id}`,
|
id: this?.ap_id ?? `${config.baseurl}/federation/m/${this.id}`,
|
||||||
name: this.title,
|
name: this.title,
|
||||||
url: `${config.baseurl}/event/${this.slug || this.id}`,
|
url: `${config.baseurl}/event/${this.slug || this.id}`,
|
||||||
type: 'Event',
|
type: 'Event',
|
||||||
|
|
Loading…
Reference in a new issue