mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 07:09:31 +00:00
Use strformat more
This commit is contained in:
parent
6709f6f1b5
commit
21e8f04fa4
11 changed files with 38 additions and 37 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
import asyncdispatch, strutils, options
|
||||
import asyncdispatch, strutils, strformat, options
|
||||
import jester, karax/vdom
|
||||
import ".."/[types, api]
|
||||
import ../views/[embed, tweet, general]
|
||||
|
|
@ -31,6 +31,6 @@ proc createEmbedRouter*(cfg: Config) =
|
|||
let id = @"id"
|
||||
|
||||
if id.len > 0:
|
||||
redirect("/i/status/" & id & "/embed")
|
||||
redirect(&"/i/status/{id}/embed")
|
||||
else:
|
||||
resp Http404
|
||||
|
|
|
|||
Loading…
Reference in a new issue