Merge pull request #1110 from bookwyrm-social/invalid-post-status-link
404 instead of error for invalid post link
This commit is contained in:
commit
a1f13d65ed
@ -21,7 +21,7 @@ from .reading import edit_readthrough
|
|||||||
class CreateStatus(View):
|
class CreateStatus(View):
|
||||||
"""the view for *posting*"""
|
"""the view for *posting*"""
|
||||||
|
|
||||||
def get(self, request):
|
def get(self, request, status_type): # pylint: disable=unused-argument
|
||||||
"""compose view (used for delete-and-redraft"""
|
"""compose view (used for delete-and-redraft"""
|
||||||
book = get_object_or_404(models.Edition, id=request.GET.get("book"))
|
book = get_object_or_404(models.Edition, id=request.GET.get("book"))
|
||||||
data = {"book": book}
|
data = {"book": book}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user