Support gif link previews

This commit is contained in:
Zed
2019-08-07 22:27:24 +02:00
parent ec5f67123a
commit 0da26ab197
3 changed files with 16 additions and 13 deletions

View File

@@ -68,8 +68,8 @@ proc getUserpic*(userpic: string; style=""): string =
proc getUserpic*(profile: Profile; style=""): string =
getUserPic(profile.userpic, style)
proc getVideoEmbed*(video: Video): string =
&"https://twitter.com/i/videos/{video.videoId}?embed_source=facebook"
proc getVideoEmbed*(id: string): string =
&"https://twitter.com/i/videos/{id}?embed_source=facebook"
proc pageTitle*(profile: Profile): string =
&"{profile.fullname} (@{profile.username})"