Missing params

main2
Bob Mottram 2019-09-28 17:08:52 +01:00
parent 48ae8dc2f2
commit 17f13d191c
1 changed files with 2 additions and 2 deletions

View File

@ -1642,7 +1642,7 @@ def addEmojiToDisplayName(baseDir: str,httpPrefix: str, \
displayName=htmlReplaceEmojiFromTags(displayName,emojiTagsList,'profile')
return displayName
def downloadAnnounce(session,baseDir: str,httpPrefix: str,nickname: str,domain: str,postJsonObject: {}) -> {}:
def downloadAnnounce(session,baseDir: str,httpPrefix: str,nickname: str,domain: str,postJsonObject: {},projectVersion: str) -> {}:
"""Download the post referenced by an announce
"""
if not postJsonObject.get('object'):
@ -1753,7 +1753,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
galleryStr=''
isAnnounced=False
if postJsonObject['type']=='Announce':
postJsonAnnounce=downloadAnnounce(session,baseDir,httpPrefix,nickname,domain,postJsonObject)
postJsonAnnounce=downloadAnnounce(session,baseDir,httpPrefix,nickname,domain,postJsonObject,projectVersion)
if not postJsonAnnounce:
return ''
postJsonObject=postJsonAnnounce