Commit 5462d3a9 authored by nanahira's avatar nanahira

dont ghost ban when not search ban

parent ed3939d2
Pipeline #12427 passed with stage
in 32 seconds
......@@ -285,6 +285,12 @@ def searchban(screen_name):
#print("ban" in returnjson["tests"]["more_replies"])
#print("ban" in returnjson["tests"]["ghost"])
#print(returnjson["tests"]["ghost"])
# No search ban => No ghost ban
if returnjson["tests"]["search"] and "ban" in returnjson["tests"]["ghost"] and returnjson["tests"]["ghost"]["ban"] == True:
returnjson["tests"]["ghost"]["ban"] = False
# 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:
returnjson["tests"]["more_replies"] = {"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