cache-follower-fix

This commit is contained in:
2024-05-06 10:25:09 +03:00
parent 0d87d3d889
commit a5d99fa517
3 changed files with 22 additions and 15 deletions

View File

@@ -325,7 +325,8 @@ async def get_author_followers(_, _info, slug: str):
else:
logger.debug(f"@{slug} got followers cached")
if isinstance(cached, str):
return json.loads(cached)
data = json.loads(cached)
return list(set(data))
except Exception as exc:
import traceback