This commit is contained in:
@@ -34,7 +34,7 @@ async def handle_topic_follower_change(topic_id: int, follower_id: int, is_inser
|
||||
topic = get_with_stat(topic_query)
|
||||
follower_query = select(Author).filter(Author.id == follower_id)
|
||||
follower = get_with_stat(follower_query)
|
||||
if isinstance(follower[0],Author) and isinstance(topic[0], Topic):
|
||||
if isinstance(follower[0], Author) and isinstance(topic[0], Topic):
|
||||
topic = topic[0]
|
||||
follower = follower[0]
|
||||
await cache_topic(topic.dict())
|
||||
|
Reference in New Issue
Block a user