unpublish-fix7
All checks were successful
Deploy on push / deploy (push) Successful in 46s

This commit is contained in:
Untone 2025-05-03 11:52:14 +03:00
parent 32cb810f51
commit 2b7d5a25b5

View File

@ -783,9 +783,7 @@ async def unpublish_shout(_, info, shout_id: int):
) )
# Добавляем main_topic # Добавляем main_topic
main_topic = get_main_topic(shout.topics) shout_dict["main_topic"] = get_main_topic(shout.topics)
if main_topic["id"]:
shout_dict["main_topic"] = main_topic
# Добавляем авторов # Добавляем авторов
shout_dict["authors"] = ( shout_dict["authors"] = (