Move function

main2
Bob Mottram 2019-09-28 17:58:21 +01:00
parent d60173def4
commit 4c644b1d1f
2 changed files with 8 additions and 8 deletions

View File

@ -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
"""

View File

@ -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: