mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 20:11:14 +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,10 +118,11 @@ class CreateStatus(View):
|
|||
status.save(created=created)
|
||||
|
||||
# update a readthrough, if needed
|
||||
try:
|
||||
edit_readthrough(request)
|
||||
except Http404:
|
||||
pass
|
||||
if bool(request.POST.get("id")):
|
||||
try:
|
||||
edit_readthrough(request)
|
||||
except Http404:
|
||||
pass
|
||||
|
||||
# force page reload if this was triggered from 'move' button
|
||||
if bool(request.POST.get("shelf")):
|
||||
|
|
Loading…
Reference in a new issue