forked from indymedia/epicyon
Event name
parent
0294f1c722
commit
4d4a19f9a2
9
posts.py
9
posts.py
|
@ -620,7 +620,8 @@ def appendEventFields(newPost: {},
|
||||||
endDateStr: str,
|
endDateStr: str,
|
||||||
location: str,
|
location: str,
|
||||||
maximumAttendeeCapacity: int,
|
maximumAttendeeCapacity: int,
|
||||||
ticketUrl: str) -> None:
|
ticketUrl: str,
|
||||||
|
subject: str) -> None:
|
||||||
"""Appends Mobilizon-type event fields to a post
|
"""Appends Mobilizon-type event fields to a post
|
||||||
"""
|
"""
|
||||||
if not eventUUID:
|
if not eventUUID:
|
||||||
|
@ -647,6 +648,8 @@ def appendEventFields(newPost: {},
|
||||||
newPost['maximumAttendeeCapacity'] = maximumAttendeeCapacity
|
newPost['maximumAttendeeCapacity'] = maximumAttendeeCapacity
|
||||||
if ticketUrl:
|
if ticketUrl:
|
||||||
newPost['ticketUrl'] = ticketUrl
|
newPost['ticketUrl'] = ticketUrl
|
||||||
|
if subject:
|
||||||
|
newPost['name'] = subject
|
||||||
|
|
||||||
|
|
||||||
def createPostBase(baseDir: str, nickname: str, domain: str, port: int,
|
def createPostBase(baseDir: str, nickname: str, domain: str, port: int,
|
||||||
|
@ -900,7 +903,7 @@ def createPostBase(baseDir: str, nickname: str, domain: str, port: int,
|
||||||
category, joinMode,
|
category, joinMode,
|
||||||
eventDateStr, endDateStr,
|
eventDateStr, endDateStr,
|
||||||
location, maximumAttendeeCapacity,
|
location, maximumAttendeeCapacity,
|
||||||
ticketUrl)
|
ticketUrl, subject)
|
||||||
else:
|
else:
|
||||||
idStr = \
|
idStr = \
|
||||||
httpPrefix + '://' + domain + '/users/' + nickname + \
|
httpPrefix + '://' + domain + '/users/' + nickname + \
|
||||||
|
@ -948,7 +951,7 @@ def createPostBase(baseDir: str, nickname: str, domain: str, port: int,
|
||||||
category, joinMode,
|
category, joinMode,
|
||||||
eventDateStr, endDateStr,
|
eventDateStr, endDateStr,
|
||||||
location, maximumAttendeeCapacity,
|
location, maximumAttendeeCapacity,
|
||||||
ticketUrl)
|
ticketUrl, subject)
|
||||||
if ccUrl:
|
if ccUrl:
|
||||||
if len(ccUrl) > 0:
|
if len(ccUrl) > 0:
|
||||||
newPost['cc'] = [ccUrl]
|
newPost['cc'] = [ccUrl]
|
||||||
|
|
Loading…
Reference in New Issue