forked from indymedia/epicyon
Add uuid to event
parent
fede8b56d6
commit
5326583c18
|
@ -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']:
|
||||
|
|
2
posts.py
2
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:
|
||||
|
|
Loading…
Reference in New Issue