mirror of https://gitlab.com/bashrc2/epicyon
Add uuid to event
parent
fede8b56d6
commit
5326583c18
|
|
@ -5732,6 +5732,11 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if not fields.get('followersOnlyEvent'):
|
if not fields.get('followersOnlyEvent'):
|
||||||
fields['followersOnlyEvent'] = False
|
fields['followersOnlyEvent'] = False
|
||||||
|
|
||||||
|
if not fields.get('anonymousParticipationEnabled'):
|
||||||
|
anonymousParticipationEnabled = False
|
||||||
|
else:
|
||||||
|
anonymousParticipationEnabled = True
|
||||||
|
|
||||||
messageJson = \
|
messageJson = \
|
||||||
createEventPost(self.server.baseDir,
|
createEventPost(self.server.baseDir,
|
||||||
nickname,
|
nickname,
|
||||||
|
|
@ -5755,7 +5760,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
fields['endTime'],
|
fields['endTime'],
|
||||||
fields['maximumAttendeeCapacity'],
|
fields['maximumAttendeeCapacity'],
|
||||||
fields['repliesModerationOption'],
|
fields['repliesModerationOption'],
|
||||||
fields['anonymousParticipationEnabled'],
|
anonymousParticipationEnabled,
|
||||||
fields['eventStatus'])
|
fields['eventStatus'])
|
||||||
if messageJson:
|
if messageJson:
|
||||||
if fields['schedulePost']:
|
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)
|
mediaType, imageDescription, useBlurhash)
|
||||||
if eventUUID:
|
if eventUUID:
|
||||||
# add attributes for Mobilizon-type events
|
# add attributes for Mobilizon-type events
|
||||||
|
newPost['object']['uuid'] = eventUUID
|
||||||
if eventStatus:
|
if eventStatus:
|
||||||
newPost['object']['ical:status'] = eventStatus
|
newPost['object']['ical:status'] = eventStatus
|
||||||
if anonymousParticipationEnabled:
|
if anonymousParticipationEnabled:
|
||||||
|
|
@ -916,6 +917,7 @@ def createPostBase(baseDir: str, nickname: str, domain: str, port: int,
|
||||||
mediaType, imageDescription, useBlurhash)
|
mediaType, imageDescription, useBlurhash)
|
||||||
if eventUUID:
|
if eventUUID:
|
||||||
# add attributes for Mobilizon-type events
|
# add attributes for Mobilizon-type events
|
||||||
|
newPost['uuid'] = eventUUID
|
||||||
if eventStatus:
|
if eventStatus:
|
||||||
newPost['ical:status'] = eventStatus
|
newPost['ical:status'] = eventStatus
|
||||||
if anonymousParticipationEnabled:
|
if anonymousParticipationEnabled:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue