From be317850f203c428f77394f824908ecff500cf78 Mon Sep 17 00:00:00 2001 From: Raphael Date: Mon, 5 Feb 2024 09:18:41 +0000 Subject: Fix Pleroma federation, add hidden RSVP option --- src/lib/activitypub/templates.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/lib/activitypub/templates.ts (limited to 'src/lib/activitypub/templates.ts') diff --git a/src/lib/activitypub/templates.ts b/src/lib/activitypub/templates.ts new file mode 100644 index 0000000..cab9ada --- /dev/null +++ b/src/lib/activitypub/templates.ts @@ -0,0 +1,14 @@ +import { IEvent } from "../../models/Event.js"; +import getConfig from "../config.js"; +const config = getConfig(); + +export const successfulRSVPResponse = ({ + event, + newAttendee, + fullAttendee, +}: { + event: IEvent; + newAttendee: { id: string; name: string }; + fullAttendee: { _id: string }; +}) => + `@${newAttendee.name} Thanks for RSVPing! You can remove yourself from the RSVP list by clicking here.`; -- cgit v1.2.3