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():
|
elif tweet.gif.isSome():
|
||||||
let
|
let
|
||||||
gif = get(tweet.gif)
|
gif = get(tweet.gif)
|
||||||
gifUrl = getUrlPrefix(cfg) & getPicUrl(gif.url)
|
gifUrl = https & gif.url
|
||||||
gifPreview = getUrlPrefix(cfg) & getPicUrl(gif.thumb)
|
gifPreview = getUrlPrefix(cfg) & getPicUrl(gif.thumb)
|
||||||
var mediaObj = newJObject()
|
var mediaObj = newJObject()
|
||||||
|
|
||||||
|
|||||||
@ -104,7 +104,7 @@ proc getActivityStream*(tweet: Tweet, cfg: Config, prefs: Prefs): JsonNode =
|
|||||||
elif tweet.gif.isSome():
|
elif tweet.gif.isSome():
|
||||||
let
|
let
|
||||||
gif = get(tweet.gif)
|
gif = get(tweet.gif)
|
||||||
gifUrl = getUrlPrefix(cfg) & getPicUrl(gif.url)
|
gifUrl = https & gif.url
|
||||||
|
|
||||||
let splitUrl = gif.thumb.split('.')
|
let splitUrl = gif.thumb.split('.')
|
||||||
var filetype = splitUrl[^1]
|
var filetype = splitUrl[^1]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user