From 2b7d5a25b528b78615792eb78d2cdf18494f6a6b Mon Sep 17 00:00:00 2001 From: Untone Date: Sat, 3 May 2025 11:52:14 +0300 Subject: [PATCH] unpublish-fix7 --- resolvers/editor.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/resolvers/editor.py b/resolvers/editor.py index 95361c20..0fd67c6e 100644 --- a/resolvers/editor.py +++ b/resolvers/editor.py @@ -783,9 +783,7 @@ async def unpublish_shout(_, info, shout_id: int): ) # Добавляем main_topic - main_topic = get_main_topic(shout.topics) - if main_topic["id"]: - shout_dict["main_topic"] = main_topic + shout_dict["main_topic"] = get_main_topic(shout.topics) # Добавляем авторов shout_dict["authors"] = (