From 8901d5d73a50ce2d426aece1f8ab0ff0216278ef Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 27 May 2018 14:12:31 +0200 Subject: feat(db): Prevent responses to closed threads This concludes the thread-closing implementation! --- src/errors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/errors.rs') diff --git a/src/errors.rs b/src/errors.rs index c73379f0cafb..dd0e12c0450e 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -124,7 +124,7 @@ impl ResponseError for ConverseError { // Everything is mapped to internal server errors for now. match *self { ConverseError::ThreadClosed { id } => HttpResponse::SeeOther() - .header("Location", format!("/thread/{}#edit-post", id)) + .header("Location", format!("/thread/{}#post-reply", id)) .finish(), _ => HttpResponse::build(StatusCode::INTERNAL_SERVER_ERROR) .body(format!("An error occured: {}", self)) -- cgit 1.4.1