fix 500 when sharing mark for song
This commit is contained in:
parent
ead070df74
commit
90077fb70a
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,7 @@ def create_update_song_mark(request):
|
|||
return HttpResponseServerError("integrity error")
|
||||
|
||||
if form.cleaned_data['share_to_mastodon']:
|
||||
if not share_review(form.instance):
|
||||
if not share_mark(form.instance):
|
||||
return HttpResponseServerError("publishing mastodon status failed")
|
||||
else:
|
||||
return HttpResponseBadRequest(f"invalid form data {form.errors}")
|
||||
|
|
Loading…
Add table
Reference in a new issue