mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Support gif link previews
This commit is contained in:
parent
ec5f67123a
commit
0da26ab197
3 changed files with 16 additions and 13 deletions
|
|
@ -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})"
|
||||
|
|
|
|||
Loading…
Reference in a new issue