mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-24 02:21:04 +00:00
don't try to update non-existent readthroughs
This commit is contained in:
parent
af9768a2e3
commit
12810d8e34
2 changed files with 5 additions and 6 deletions
|
@ -86,8 +86,6 @@ class ReadingStatus(View):
|
|||
if request.POST.get("post-status"):
|
||||
# is it a comment?
|
||||
if request.POST.get("content"):
|
||||
# BUG: there is a problem posting statuses with comments (doesn't force reload)
|
||||
# there is a DIFFERENT problem *updating* read statuses/comments
|
||||
return CreateStatus.as_view()(request, "comment")
|
||||
privacy = request.POST.get("privacy")
|
||||
handle_reading_status(request.user, desired_shelf, book, privacy)
|
||||
|
|
|
@ -118,6 +118,7 @@ class CreateStatus(View):
|
|||
status.save(created=created)
|
||||
|
||||
# update a readthrough, if needed
|
||||
if bool(request.POST.get("id")):
|
||||
try:
|
||||
edit_readthrough(request)
|
||||
except Http404:
|
||||
|
|
Loading…
Reference in a new issue