This commit is contained in:
parent
536c094e72
commit
243f836f0a
|
@ -116,10 +116,6 @@ async def create_draft(_, info, draft_input):
|
|||
if "id" in draft_input:
|
||||
del draft_input["id"]
|
||||
|
||||
if "seo" not in draft_input and not draft_input.get("seo"):
|
||||
body_teaser = draft_input.get("body", "")[:300].split("\n")[:-1].join("\n")
|
||||
draft_input["seo"] = draft_input.get("lead", body_teaser)
|
||||
|
||||
# Добавляем текущее время создания
|
||||
draft_input["created_at"] = int(time.time())
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user