forked from indymedia/epicyon
Move function
parent
d60173def4
commit
4c644b1d1f
8
posts.py
8
posts.py
|
@ -2191,6 +2191,14 @@ def populateRepliesJson(baseDir: str,nickname: str,domain: str, \
|
|||
'https://www.w3.org/ns/activitystreams#Public' in postJsonObject['object']['to']:
|
||||
repliesJson['orderedItems'].append(postJsonObject)
|
||||
|
||||
def rejectAnnounce(announceFilename: str):
|
||||
"""Marks an announce as rejected
|
||||
"""
|
||||
if not os.path.isfile(announceFilename+'.reject'):
|
||||
rejectAnnounceFile=open(announceFilename+'.reject', "w+")
|
||||
rejectAnnounceFile.write('\n')
|
||||
rejectAnnounceFile.close()
|
||||
|
||||
def downloadAnnounce(session,baseDir: str,httpPrefix: str,nickname: str,domain: str,postJsonObject: {},projectVersion: str) -> {}:
|
||||
"""Download the post referenced by an announce
|
||||
"""
|
||||
|
|
|
@ -1613,14 +1613,6 @@ def insertQuestion(translate: {}, \
|
|||
content+='</form></div>'
|
||||
return content
|
||||
|
||||
def rejectAnnounce(announceFilename: str):
|
||||
"""Marks an announce as rejected
|
||||
"""
|
||||
if not os.path.isfile(announceFilename+'.reject'):
|
||||
rejectAnnounceFile=open(announceFilename+'.reject', "w+")
|
||||
rejectAnnounceFile.write('\n')
|
||||
rejectAnnounceFile.close()
|
||||
|
||||
def addEmojiToDisplayName(baseDir: str,httpPrefix: str, \
|
||||
nickname: str,domain: str, \
|
||||
displayName: str,inProfileName: bool) -> str:
|
||||
|
|
Loading…
Reference in New Issue