Change /replies to /with_replies for compatibility
This commit is contained in:
parent
a583ad6854
commit
5013197b17
|
@ -35,7 +35,7 @@ proc createRssRouter*(cfg: Config) =
|
||||||
cond '.' notin @"name"
|
cond '.' notin @"name"
|
||||||
respRss(await showRss(@"name", Query()))
|
respRss(await showRss(@"name", Query()))
|
||||||
|
|
||||||
get "/@name/replies/rss":
|
get "/@name/with_replies/rss":
|
||||||
cond '.' notin @"name"
|
cond '.' notin @"name"
|
||||||
respRss(await showRss(@"name", getReplyQuery(@"name")))
|
respRss(await showRss(@"name", getReplyQuery(@"name")))
|
||||||
|
|
||||||
|
|
|
@ -84,9 +84,9 @@ proc createTimelineRouter*(cfg: Config) =
|
||||||
let rss = "/$1/rss" % @"name"
|
let rss = "/$1/rss" % @"name"
|
||||||
respTimeline(await showTimeline(request, Query(), cfg.title, rss))
|
respTimeline(await showTimeline(request, Query(), cfg.title, rss))
|
||||||
|
|
||||||
get "/@name/replies":
|
get "/@name/with_replies":
|
||||||
cond '.' notin @"name"
|
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))
|
respTimeline(await showTimeline(request, getReplyQuery(@"name"), cfg.title, rss))
|
||||||
|
|
||||||
get "/@name/media":
|
get "/@name/media":
|
||||||
|
|
|
@ -33,7 +33,7 @@ proc renderProfileTabs*(query: Query; username: string): VNode =
|
||||||
li(class=query.getTabClass(posts)):
|
li(class=query.getTabClass(posts)):
|
||||||
a(href=link): text "Tweets"
|
a(href=link): text "Tweets"
|
||||||
li(class=(query.getTabClass(replies) & " wide")):
|
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)):
|
li(class=query.getTabClass(media)):
|
||||||
a(href=(link & "/media")): text "Media"
|
a(href=(link & "/media")): text "Media"
|
||||||
li(class=query.getTabClass(custom)):
|
li(class=query.getTabClass(custom)):
|
||||||
|
|
Loading…
Reference in New Issue