Commit c80a3172 authored by nanahira's avatar nanahira

fix ghost ban

parent e4fa6fd3
...@@ -459,12 +459,12 @@ def searchban(screen_name): ...@@ -459,12 +459,12 @@ def searchban(screen_name):
"tweet": showmoreTweetId "tweet": showmoreTweetId
} }
# No search ban || more replies => No ghost ban # No search ban || more replies => No ghost ban
if returnjson["tests"]["search"] and returnjson["tests"]["search"] != "_error" and "ban" in returnjson["tests"]["ghost"] and returnjson["tests"]["ghost"]["ban"] == True or "ban" in returnjson["tests"]["more_replies"] and returnjson["tests"]["more_replies"]["ban"] == True: #if returnjson["tests"]["search"] and returnjson["tests"]["search"] != "_error" and "ban" in returnjson["tests"]["ghost"] and returnjson["tests"]["ghost"]["ban"] == True or "ban" in returnjson["tests"]["more_replies"] and returnjson["tests"]["more_replies"]["ban"] == True:
returnjson["tests"]["ghost"] = { # returnjson["tests"]["ghost"] = {
"ban": False, # "ban": False,
"tweet": ghostTweetId, # "tweet": ghostTweetId,
"in_reply_to": ghostReplyId # "in_reply_to": ghostReplyId
} # }
# No ghost ban && unknown more replies => No more replies ban # No ghost ban && unknown more replies => No more replies ban
if "ban" not in returnjson["tests"]["more_replies"] and "ban" in returnjson["tests"]["ghost"] and returnjson["tests"]["ghost"]["ban"] == False: if "ban" not in returnjson["tests"]["more_replies"] and "ban" in returnjson["tests"]["ghost"] and returnjson["tests"]["ghost"]["ban"] == False:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment