diff --git a/daemon.py b/daemon.py index f17ae4304..c11e4c549 100644 --- a/daemon.py +++ b/daemon.py @@ -5732,6 +5732,11 @@ class PubServer(BaseHTTPRequestHandler): if not fields.get('followersOnlyEvent'): fields['followersOnlyEvent'] = False + if not fields.get('anonymousParticipationEnabled'): + anonymousParticipationEnabled = False + else: + anonymousParticipationEnabled = True + messageJson = \ createEventPost(self.server.baseDir, nickname, @@ -5755,7 +5760,7 @@ class PubServer(BaseHTTPRequestHandler): fields['endTime'], fields['maximumAttendeeCapacity'], fields['repliesModerationOption'], - fields['anonymousParticipationEnabled'], + anonymousParticipationEnabled, fields['eventStatus']) if messageJson: if fields['schedulePost']: diff --git a/posts.py b/posts.py index a86cbaf55..d3ba98b2a 100644 --- a/posts.py +++ b/posts.py @@ -854,6 +854,7 @@ def createPostBase(baseDir: str, nickname: str, domain: str, port: int, mediaType, imageDescription, useBlurhash) if eventUUID: # add attributes for Mobilizon-type events + newPost['object']['uuid'] = eventUUID if eventStatus: newPost['object']['ical:status'] = eventStatus if anonymousParticipationEnabled: @@ -916,6 +917,7 @@ def createPostBase(baseDir: str, nickname: str, domain: str, port: int, mediaType, imageDescription, useBlurhash) if eventUUID: # add attributes for Mobilizon-type events + newPost['uuid'] = eventUUID if eventStatus: newPost['ical:status'] = eventStatus if anonymousParticipationEnabled: