From 9ebba847a418533805cf64eeb333d946a944caaa Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Sat, 16 Jan 2021 00:41:16 +0100 Subject: [PATCH] stpkg: fix dl links for the mxc => https conversion --- stpkg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stpkg b/stpkg index d143ee1..e03b6da 100755 --- a/stpkg +++ b/stpkg @@ -226,9 +226,11 @@ create_sticker_json() { mxc_to_https() { # The transformation is the following # `mxc://<serv>/<id>` => `https://<serv>/_matrix/media/r0/download/<serv>/<id>` + # It seems that every requests should be made to matrix.org... + # `mxc://<serv>/<id>` => `https://matrix.org/_matrix/media/r0/download/<serv>/<id>` local SERV=`echo "$1" | awk -F/ '{print $3}'` local ID=`echo "$1" | awk -F/ '{print $4}'` - echo "https://$SERV/_matrix/media/r0/download/$SERV/$ID" + echo "https://matrix.org/_matrix/media/r0/download/$SERV/$ID" } ################################ -- GitLab