fix(templates/handlers): Fix post anchors
- ensure users are correctly linked to a post actor after replying - ensure timestamps are clickable to get post IDs
This commit is contained in:
parent
b781a1fe57
commit
918c2726b4
2 changed files with 5 additions and 3 deletions
|
|
@ -131,7 +131,7 @@ pub fn reply_thread(state: State<AppState>,
|
|||
let post = res?;
|
||||
info!("Posted reply {} to thread {}", post.id, post.thread_id);
|
||||
Ok(HttpResponse::SeeOther()
|
||||
.header("Location", format!("/thread/{}#post{}", post.thread_id, post.id))
|
||||
.header("Location", format!("/thread/{}#post-{}", post.thread_id, post.id))
|
||||
.finish())
|
||||
})
|
||||
.responder()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue