diff --git a/stpkg b/stpkg index d143ee167038784bc4e7ee512b119f4f58231617..e03b6da0d2e5d9ab69e5c01fb7790c41948ac61d 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" } ################################