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"] = (