mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
feat(AP): add description into summary representation, fix #304
This commit is contained in:
parent
44a90bd791
commit
53a16827b9
1 changed files with 4 additions and 1 deletions
|
@ -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 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 location = []
|
||||
|
|
Loading…
Reference in a new issue