mirror of https://gitlab.com/bashrc2/epicyon
Mark failed announce download as rejected
parent
568d73845d
commit
7b92186deb
|
@ -1290,6 +1290,15 @@ def individualPostAsHtml(allowDownloads: bool,
|
||||||
YTReplacementDomain,
|
YTReplacementDomain,
|
||||||
allowLocalNetworkAccess)
|
allowLocalNetworkAccess)
|
||||||
if not postJsonAnnounce:
|
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 ''
|
return ''
|
||||||
postJsonObject = postJsonAnnounce
|
postJsonObject = postJsonAnnounce
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue