[FIX] argh

This commit is contained in:
LDA 2025-04-13 10:23:51 +00:00
commit 45250096ad

View file

@ -150,7 +150,7 @@ ASGetMIMESHA(const ParseeConfig *c, char *mxc, char **mime, char **sha)
return false; return false;
} }
path = StrConcat(3, "/_matrix/media/v3/download/", uri->host, uri->path); path = StrConcat(3, "/_matrix/client/v1/media/download/", uri->host, uri->path);
cctx = ParseeCreateRequest(c, HTTP_GET, path); cctx = ParseeCreateRequest(c, HTTP_GET, path);
ASAuthenticateRequest(c, cctx); ASAuthenticateRequest(c, cctx);
HttpRequestSendHeaders(cctx); HttpRequestSendHeaders(cctx);
@ -195,7 +195,7 @@ ASGrab(const ParseeConfig *c, char *mxc, char **mime, char **out, size_t *len)
return false; return false;
} }
path = StrConcat(3, "/_matrix/media/v3/download/", uri->host, uri->path); path = StrConcat(3, "/_matrix/client/v1/media/download/", uri->host, uri->path);
cctx = ParseeCreateRequest(c, HTTP_GET, path); cctx = ParseeCreateRequest(c, HTTP_GET, path);
ASAuthenticateRequest(c, cctx); ASAuthenticateRequest(c, cctx);
HttpRequestSendHeaders(cctx); HttpRequestSendHeaders(cctx);