diff --git a/webinterface.py b/webinterface.py index 95363487..72d77334 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1374,15 +1374,18 @@ def followerApprovalActive(baseDir: str,nickname: str,domain: str) -> bool: manuallyApprovesFollowers=actorJson['manuallyApprovesFollowers'] return manuallyApprovesFollowers -def insertQuestion(nickname: str,content: str,postJsonObject: {}) -> str: +def insertQuestion(nickname: str,content: str,postJsonObject: {},pageNumber: int) -> str: """ Inserts question selection into a post """ if not isQuestion(postJsonObject): return content if len(postJsonObject['object']['oneOf'])==0: return content + pageNumberStr='' + if pageNumber: + pageNumberStr='?page='+str(pageNumber) content+='