summaryrefslogtreecommitdiff
path: root/src/lib/activitypub.ts
diff options
context:
space:
mode:
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,