summaryrefslogtreecommitdiff
path: root/src/lib/activitypub.ts
diff options
context:
space:
mode:
authorRaphael Kabo <raphaelkabo@hey.com>2024-02-27 17:37:10 +0000
committerRaphael Kabo <raphaelkabo@hey.com>2024-02-27 17:37:10 +0000
commit35398241dea769bd7554eaca0a9045801c847340 (patch)
tree8793eca2c6bfd6aa630e29a175aba7dfa413a3bb /src/lib/activitypub.ts
parentec0bf2d6a9e74fd68febe9c09ba1997858ec3d7f (diff)
Update dependencies to latest versions
Diffstat (limited to 'src/lib/activitypub.ts')
-rw-r--r--src/lib/activitypub.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/activitypub.ts b/src/lib/activitypub.ts
index a06991d..19aee08 100644
--- a/src/lib/activitypub.ts
+++ b/src/lib/activitypub.ts
@@ -142,7 +142,10 @@ export const handlePollResponse = async (req: Request, res: Response) => {
if (!event.attendees?.some((el) => el.id === attributedTo)) {
const attendeeName =
apActor.preferredUsername || apActor.name || attributedTo;
- const newAttendee: Partial<IAttendee> = {
+ const newAttendee: Pick<
+ IAttendee,
+ "name" | "status" | "id" | "number" | "visibility"
+ > = {
name: attendeeName,
status: "attending",
id: attributedTo,