feat(AP): add description into summary representation, fix #304

This commit is contained in:
lesion 2025-01-24 12:45:53 +01:00
parent 44a90bd791
commit 53a16827b9
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -49,7 +49,10 @@ module.exports = (sequelize, DataTypes) => {
} }
const datetime = DateTime.fromSeconds(this.start_datetime, opt).toLocaleString({ weekday: 'long', month: 'long', day: 'numeric', hour: '2-digit', minute: '2-digit', timeZoneName: 'short' }) const datetime = DateTime.fromSeconds(this.start_datetime, opt).toLocaleString({ weekday: 'long', month: 'long', day: 'numeric', hour: '2-digit', minute: '2-digit', timeZoneName: 'short' })
const summary = `${this.place && this.place.name}, ${datetime}`
// https://framagit.org/les/gancio/-/issues/304
// https://www.w3.org/TR/activitystreams-vocabulary/#dfn-summary
const summary = `<p>${this.place && this.place.name}, ${datetime}</p>${this.description}`
let attachment = [] let attachment = []
let location = [] let location = []