mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 20:11:14 +00:00
Handles statuses with no readthrough updates
This commit is contained in:
parent
d510d72b8d
commit
c465c70c22
1 changed files with 5 additions and 2 deletions
|
@ -5,7 +5,7 @@ from urllib.parse import urlparse
|
||||||
from django.contrib.auth.decorators import login_required
|
from django.contrib.auth.decorators import login_required
|
||||||
from django.core.validators import URLValidator
|
from django.core.validators import URLValidator
|
||||||
from django.core.exceptions import ValidationError
|
from django.core.exceptions import ValidationError
|
||||||
from django.http import HttpResponse, HttpResponseBadRequest
|
from django.http import HttpResponse, HttpResponseBadRequest, Http404
|
||||||
from django.shortcuts import get_object_or_404, redirect
|
from django.shortcuts import get_object_or_404, redirect
|
||||||
from django.template.response import TemplateResponse
|
from django.template.response import TemplateResponse
|
||||||
from django.utils.decorators import method_decorator
|
from django.utils.decorators import method_decorator
|
||||||
|
@ -79,7 +79,10 @@ class CreateStatus(View):
|
||||||
status.save(created=True)
|
status.save(created=True)
|
||||||
|
|
||||||
# update a readthorugh, if needed
|
# update a readthorugh, if needed
|
||||||
|
try:
|
||||||
edit_readthrough(request)
|
edit_readthrough(request)
|
||||||
|
except Http404:
|
||||||
|
pass
|
||||||
|
|
||||||
if is_api_request(request):
|
if is_api_request(request):
|
||||||
return HttpResponse()
|
return HttpResponse()
|
||||||
|
|
Loading…
Reference in a new issue