Add redirect for `thread` links

This commit is contained in:
Jules Bertholet 2022-06-22 18:03:37 -04:00 committed by GitHub
parent 5e827c91aa
commit 58c62ff39e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -72,3 +72,6 @@ proc createStatusRouter*(cfg: Config) =
get "/i/web/status/@id":
redirect("/i/status/" & @"id")
get "/@name/thread/@id/?":
redirect("/$1/status/$2" % [@"name", @"id"])