following-cache-anyway-found
All checks were successful
Deploy on push / deploy (push) Successful in 27s

This commit is contained in:
2024-05-05 20:17:07 +03:00
parent 3ab42ecb72
commit ac5674d18f
4 changed files with 9 additions and 8 deletions

View File

@@ -61,7 +61,7 @@ async def follow(_, info, what, slug):
if isinstance(author_dict, dict):
author_id = author_dict.get("id")
if author_id:
follows_ids = [a.get('id') for a in follows]
follows_ids = [a.get("id") for a in follows]
if author_id not in follows_ids:
await cache_author(follower_dict)
await notify_follower(follower_dict, author_id, "follow")