Commit 55be7ef8 authored by nanahira's avatar nanahira

Merge branch 'steve' of git.mycard.moe:nanahira/shadowban-eu-backend into steve

parents 98f2494c b52cce66
Pipeline #25980 passed with stages
in 57 seconds
......@@ -289,7 +289,7 @@ def searchban(screen_name):
# if len(usertlb) == 0:
# return "No tweets found" # TODO: Better error handling
if len(usertl_json) == 0:
if len(usertl_json) == 0 or 'user' not in usertl_json['data']:
returnjson["profile"]["has_tweets"] = False
return returnjson
......
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