unproxy gifs so discord can play them
This commit is contained in:
parent
b9d8ec6773
commit
9751237316
@ -148,7 +148,7 @@ proc createActivityPubRouter*(cfg: Config) =
|
||||
elif tweet.gif.isSome():
|
||||
let
|
||||
gif = get(tweet.gif)
|
||||
gifUrl = getUrlPrefix(cfg) & getPicUrl(gif.url)
|
||||
gifUrl = https & gif.url
|
||||
gifPreview = getUrlPrefix(cfg) & getPicUrl(gif.thumb)
|
||||
var mediaObj = newJObject()
|
||||
|
||||
|
||||
@ -104,7 +104,7 @@ proc getActivityStream*(tweet: Tweet, cfg: Config, prefs: Prefs): JsonNode =
|
||||
elif tweet.gif.isSome():
|
||||
let
|
||||
gif = get(tweet.gif)
|
||||
gifUrl = getUrlPrefix(cfg) & getPicUrl(gif.url)
|
||||
gifUrl = https & gif.url
|
||||
|
||||
let splitUrl = gif.thumb.split('.')
|
||||
var filetype = splitUrl[^1]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user