about summary refs log tree commit diff
path: root/src/errors.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2018-05-27T12·12+0200
committerVincent Ambo <github@tazj.in>2018-05-27T13·00+0200
commit8901d5d73a50ce2d426aece1f8ab0ff0216278ef (patch)
treeb2de277f94a230910c114afbe3565045be27d352 /src/errors.rs
parenta14ece6af3a2d0f03af072c337ef50e311a79066 (diff)
feat(db): Prevent responses to closed threads
This concludes the thread-closing implementation!
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/errors.rs b/src/errors.rs
index c73379f0ca..dd0e12c045 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))