From 53a16827b972f745cbd71c53872fc25f83d83d07 Mon Sep 17 00:00:00 2001 From: lesion Date: Fri, 24 Jan 2025 12:45:53 +0100 Subject: [PATCH] feat(AP): add description into summary representation, fix #304 --- server/api/models/event.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/api/models/event.js b/server/api/models/event.js index b9a69813..02d2f004 100644 --- a/server/api/models/event.js +++ b/server/api/models/event.js @@ -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 = `

${this.place && this.place.name}, ${datetime}

${this.description}` let attachment = [] let location = []