forked from indymedia/epicyon
Add return value
parent
f9067de19f
commit
9b2356e195
4
posts.py
4
posts.py
|
@ -1287,8 +1287,10 @@ def createEventPost(baseDir: str,
|
|||
"""Mobilizon-type Event post
|
||||
"""
|
||||
if not attachImageFilename:
|
||||
print('Event has no attached image')
|
||||
return None
|
||||
if not category:
|
||||
print('Event has no category')
|
||||
return None
|
||||
domainFull = domain
|
||||
if port:
|
||||
|
@ -1305,7 +1307,7 @@ def createEventPost(baseDir: str,
|
|||
if followersOnly:
|
||||
toStr1 = toStr2
|
||||
toStr2 = None
|
||||
createPostBase(baseDir, nickname, domain, port,
|
||||
return createPostBase(baseDir, nickname, domain, port,
|
||||
toStr1, toStr2,
|
||||
httpPrefix, content, followersOnly, saveToFile,
|
||||
clientToServer, commentsEnabled,
|
||||
|
|
Loading…
Reference in New Issue