1
0
mirror of https://github.com/zedeus/nitter.git synced 2025-12-15 08:42:48 -05:00

Revert og:title for tweets

This commit is contained in:
Zed
2020-03-29 23:20:00 +02:00
parent 2458a067ef
commit 240ce15651
2 changed files with 7 additions and 5 deletions

View File

@@ -26,6 +26,7 @@ proc createStatusRouter*(cfg: Config) =
var
title = pageTitle(conversation.tweet)
ogTitle = pageTitle(conversation.tweet.profile)
desc = conversation.tweet.text
images = conversation.tweet.photos
video = ""
@@ -38,7 +39,8 @@ proc createStatusRouter*(cfg: Config) =
video = getGifUrl(get(conversation.tweet.gif).url)
let html = renderConversation(conversation, prefs, getPath() & "#m")
resp renderMain(html, request, cfg, title, desc, images=images, video=video)
resp renderMain(html, request, cfg, title, desc,
images=images, video=video, ogTitle=ogTitle)
get "/@name/@s/@id/@m/?@i?":
cond @"s" in ["status", "statuses"]