fix 500 when sharing mark for song

This commit is contained in:
Your Name 2022-04-30 21:55:20 -04:00
parent ead070df74
commit 90077fb70a

View file

@ -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}")