Mark blocked announces as rejected

master
Bob Mottram 2019-09-09 16:20:05 +01:00
parent 27498d8fad
commit 8755d49d7f
1 changed files with 1 additions and 0 deletions

View File

@ -1501,6 +1501,7 @@ def individualPostAsHtml(translate: {}, \
if attributedPort!=80 and attributedPort!=443:
attributedDomain=attributedDomain+':'+str(attributedPort)
if isBlocked(baseDir,nickname,domain,attributedNickname,attributedDomain):
rejectAnnounce(announceFilename)
return ''
postJsonObject=announcedJson
with open(announceFilename, 'w') as fp: