Add tweet focus to referer paths

This commit is contained in:
Zed 2019-10-26 17:21:35 +02:00
parent 0b5c15ce67
commit c3ce397280
2 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,7 @@ proc createStatusRouter*(cfg: Config) =
let let
title = pageTitle(conversation.tweet.profile) title = pageTitle(conversation.tweet.profile)
desc = conversation.tweet.text desc = conversation.tweet.text
html = renderConversation(conversation, prefs, getPath()) html = renderConversation(conversation, prefs, getPath() & "#m")
if conversation.tweet.video.isSome(): if conversation.tweet.video.isSome():
let thumb = get(conversation.tweet.video).thumb let thumb = get(conversation.tweet.video).thumb

View File

@ -9,8 +9,9 @@ import jester
const doctype = "<!DOCTYPE html>\n" const doctype = "<!DOCTYPE html>\n"
proc renderNavbar*(title, rss: string; req: Request): VNode = proc renderNavbar*(title, rss: string; req: Request): VNode =
let path = $(parseUri(req.path) ? filterParams(req.params))
let twitterPath = getTwitterLink(req.path, req.params) let twitterPath = getTwitterLink(req.path, req.params)
var path = $(parseUri(req.path) ? filterParams(req.params))
if "/status" in path: path.add "#m"
buildHtml(nav): buildHtml(nav):
tdiv(class="inner-nav"): tdiv(class="inner-nav"):