This commit is contained in:
@@ -111,7 +111,7 @@ async def precache_data():
|
||||
for author in authors:
|
||||
profile = author.dict() if not isinstance(author, dict) else author
|
||||
author_id = profile.get("id")
|
||||
user_id = profile.get("user")
|
||||
user_id = profile.get("user","").strip()
|
||||
if author_id and user_id:
|
||||
authors_by_id[author_id] = profile
|
||||
author_payload = json.dumps(profile, cls=CustomJSONEncoder)
|
||||
|
Reference in New Issue
Block a user