forked from retoor/devplacepy
ticket #150 attempt 1
This commit is contained in:
@@ -87,6 +87,7 @@ async def create_rant(request: Request):
|
||||
if len(text) > 125000:
|
||||
return dr_error("Your rant is too long.")
|
||||
tags = _parse_tags(params.get("tags"))
|
||||
project_uid = params.get("project_uid") or None
|
||||
uid, slug = create_content_item(
|
||||
"posts",
|
||||
"post",
|
||||
@@ -95,7 +96,7 @@ async def create_rant(request: Request):
|
||||
"title": None,
|
||||
"content": text,
|
||||
"topic": "rant",
|
||||
"project_uid": None,
|
||||
"project_uid": project_uid,
|
||||
"image": None,
|
||||
"tags": encode_tags(tags),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user