Change /replies to /with_replies for compatibility

This commit is contained in:
Zed 2019-10-07 17:46:16 +02:00
parent a583ad6854
commit 5013197b17
3 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ proc createRssRouter*(cfg: Config) =
cond '.' notin @"name"
respRss(await showRss(@"name", Query()))
get "/@name/replies/rss":
get "/@name/with_replies/rss":
cond '.' notin @"name"
respRss(await showRss(@"name", getReplyQuery(@"name")))

View File

@ -84,9 +84,9 @@ proc createTimelineRouter*(cfg: Config) =
let rss = "/$1/rss" % @"name"
respTimeline(await showTimeline(request, Query(), cfg.title, rss))
get "/@name/replies":
get "/@name/with_replies":
cond '.' notin @"name"
let rss = "/$1/replies/rss" % @"name"
let rss = "/$1/with_replies/rss" % @"name"
respTimeline(await showTimeline(request, getReplyQuery(@"name"), cfg.title, rss))
get "/@name/media":

View File

@ -33,7 +33,7 @@ proc renderProfileTabs*(query: Query; username: string): VNode =
li(class=query.getTabClass(posts)):
a(href=link): text "Tweets"
li(class=(query.getTabClass(replies) & " wide")):
a(href=(link & "/replies")): text "Tweets & Replies"
a(href=(link & "/with_replies")): text "Tweets & Replies"
li(class=query.getTabClass(media)):
a(href=(link & "/media")): text "Media"
li(class=query.getTabClass(custom)):