Blocking news posts with hashtag interpreter

main
Bob Mottram 2020-10-17 17:24:47 +01:00
parent 22fcc7be06
commit 30f4a03b5c
1 changed files with 4 additions and 0 deletions

View File

@ -261,6 +261,10 @@ def newswireHashtagProcessing(session, baseDir: str, postJsonObject: {},
del postJsonObject['object']['tag'][htId]
# actionOccurred = True
# Block this item
if actionStr.startswith('block') or actionStr.startswith('drop'):
return False
# TODO
# If routing to another instance
# sendSignedJson(postJsonObject: {}, session, baseDir: str,