forked from indymedia/epicyon
Add return value
parent
f9067de19f
commit
9b2356e195
28
posts.py
28
posts.py
|
@ -1287,8 +1287,10 @@ def createEventPost(baseDir: str,
|
||||||
"""Mobilizon-type Event post
|
"""Mobilizon-type Event post
|
||||||
"""
|
"""
|
||||||
if not attachImageFilename:
|
if not attachImageFilename:
|
||||||
|
print('Event has no attached image')
|
||||||
return None
|
return None
|
||||||
if not category:
|
if not category:
|
||||||
|
print('Event has no category')
|
||||||
return None
|
return None
|
||||||
domainFull = domain
|
domainFull = domain
|
||||||
if port:
|
if port:
|
||||||
|
@ -1305,19 +1307,19 @@ def createEventPost(baseDir: str,
|
||||||
if followersOnly:
|
if followersOnly:
|
||||||
toStr1 = toStr2
|
toStr1 = toStr2
|
||||||
toStr2 = None
|
toStr2 = None
|
||||||
createPostBase(baseDir, nickname, domain, port,
|
return createPostBase(baseDir, nickname, domain, port,
|
||||||
toStr1, toStr2,
|
toStr1, toStr2,
|
||||||
httpPrefix, content, followersOnly, saveToFile,
|
httpPrefix, content, followersOnly, saveToFile,
|
||||||
clientToServer, commentsEnabled,
|
clientToServer, commentsEnabled,
|
||||||
attachImageFilename, mediaType,
|
attachImageFilename, mediaType,
|
||||||
imageDescription, useBlurhash,
|
imageDescription, useBlurhash,
|
||||||
False, False, None, None, subject,
|
False, False, None, None, subject,
|
||||||
schedulePost, eventDate, eventTime, location,
|
schedulePost, eventDate, eventTime, location,
|
||||||
eventUUID, category, joinMode,
|
eventUUID, category, joinMode,
|
||||||
endDate, endTime, maximumAttendeeCapacity,
|
endDate, endTime, maximumAttendeeCapacity,
|
||||||
repliesModerationOption,
|
repliesModerationOption,
|
||||||
anonymousParticipationEnabled,
|
anonymousParticipationEnabled,
|
||||||
eventStatus, ticketUrl)
|
eventStatus, ticketUrl)
|
||||||
|
|
||||||
|
|
||||||
def getMentionedPeople(baseDir: str, httpPrefix: str,
|
def getMentionedPeople(baseDir: str, httpPrefix: str,
|
||||||
|
|
Loading…
Reference in New Issue