diff options
author | Raphael <mail@raphaelkabo.com> | 2024-02-06 09:18:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-06 09:18:19 +0000 |
commit | 9e249e508ead933cb26eba597003a3b4764e27a5 (patch) | |
tree | ff9c1b7784b436002a2ebfa86779c4e25ecf64b1 /src/lib/activitypub | |
parent | ecff04b132db687f67d9a6cda2d1c13831c45394 (diff) | |
parent | e40ef51f26d04620b85fcbb15b5c9de857fcbf7b (diff) |
Merge pull request #129 from lowercasename/rk/fix-pleroma
Pleroma federation fixes and hidden RSVP functionality
Diffstat (limited to 'src/lib/activitypub')
-rw-r--r-- | src/lib/activitypub/templates.ts | 14 |
1 files changed, 14 insertions, 0 deletions
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 }; +}) => + `<span class="h-card"><a href="${newAttendee.id}" class="u-url mention">@<span>${newAttendee.name}</span></a></span> Thanks for RSVPing! You can remove yourself from the RSVP list by clicking <a href="https://${config.general.domain}/oneclickunattendevent/${event.id}/${fullAttendee._id}">here</a>.`; |