From 4c644b1d1f9afdc6ede469c2e2f31811a33fd06e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 28 Sep 2019 17:58:21 +0100 Subject: [PATCH] Move function --- posts.py | 8 ++++++++ webinterface.py | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/posts.py b/posts.py index 90a3b4bf..d3fd7f1c 100644 --- a/posts.py +++ b/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 """ diff --git a/webinterface.py b/webinterface.py index 38f907f9..fec12d41 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1613,14 +1613,6 @@ def insertQuestion(translate: {}, \ content+='' 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: