diff --git a/webapp_post.py b/webapp_post.py index c06c55959..2dfee6d26 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -1290,6 +1290,15 @@ def individualPostAsHtml(allowDownloads: bool, YTReplacementDomain, allowLocalNetworkAccess) if not postJsonAnnounce: + # if the announce could not be downloaded then mark it as rejected + announceFilename = \ + locatePost(baseDir, nickname, domain, + postJsonObject['id']) + if announceFilename: + rejectFile = open(announceFilename + '.reject', "w+") + if rejectFile: + rejectFile.write('\n') + rejectFile.close() return '' postJsonObject = postJsonAnnounce