mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-16 21:26:33 +00:00
Fixes editing replies
This commit is contained in:
parent
e43cade6cc
commit
0dba071126
1 changed files with 2 additions and 1 deletions
|
@ -33,8 +33,9 @@ class EditStatus(View):
|
||||||
)
|
)
|
||||||
status.raise_not_editable(request.user)
|
status.raise_not_editable(request.user)
|
||||||
|
|
||||||
|
status_type = "reply" if status.reply_parent else status.status_type.lower()
|
||||||
data = {
|
data = {
|
||||||
"type": status.status_type.lower(),
|
"type": status_type,
|
||||||
"book": getattr(status, "book", None),
|
"book": getattr(status, "book", None),
|
||||||
"draft": status,
|
"draft": status,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue