unproxy gifs so discord can play them

This commit is contained in:
Cynthia Foxwell 2025-04-20 21:23:50 -06:00
parent b9d8ec6773
commit 9751237316
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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]