3 ms·
It will be. We had the same issue with Matrix attachments.
by kuschku 2y ago
It will be. We had the same issue with Matrix attachments.
- Arathorn 2y agogot fixed by https://github.com/matrix-org/matrix-spec-proposals/blob/main/proposals/3916-authentication-for-media.md https://github.com/matrix-org/matrix-spec-proposals/blob/mai... fwiw
- kuschku 2y agoI noticed^^ Tbh, I still haven't figured out how my IRC client is supposed to fetch avatars of bridged matrix users now. Previously I was able to special case bridged matrix users and access their avatars through /_matrix/client/r0/profile/{name}/avatar_url /_matrix/media/r0/thumbnail/{server}/{id}/ /_matrix/media/r0/download/{server}/{id}
- Arathorn 2y agoI believe the bridges should host a proxy (per-bridge) to expose content: https://github.com/matrix-org/matrix-appservice-irc/pull/1805/files#diff-d2418fdfd951cf34759253e176353052c65c5bd47b9f5b8a9d052fea79cc3037R613 https://github.com/matrix-org/matrix-appservice-irc/pull/180...
- kuschku 2y agoBut does that proxy actually expose avatars/profile pictures? From what I can tell they only proxy attachments.
- Arathorn 2y agoavatars pictures /are/ just attachments tho?
- kuschku 2y agoThe bridge only transforms images attached to events to new media proxy links. If a bridged matrix user joins a channel, as IRC client I see the following information: justJanne[m]!justjannem@Snoonet-han4h7.720l.ak1n.m0s0nj.IP (@justjanne:matrix.org) With the mxid I can call /_matrix/client/r0/profile/{name}/avatar_url and get the mxc url. mxc://matrix.org/uQMYcfRtSKFlYYBXLGhuIXzq In the past that was enough, I could just call /_matrix/media/r0/download/. With authenticated media, I would need to get a URL with a signed JWT from the bridge's media proxy such as https://matrix.org/snoonet/media/v1/media/download/ARahZwUoMu0BcC8Di6Q3N3lpPAejecpE6OyRcKnsvw3n7pjmP7XVSXG8hYT99knbOtESJ9ODlzqLcdLy8Y2mPs9CeTshGEPwAG1hdHJpeC5vcmcvdVFNWWNmUnRTS0ZsWVlCWExHaHVJWHpx But what endpoint would I call to get that? From what I can tell there's no way to get the bridge to give me a users' avatar. I'd expect to have an special endpoint such as /snoonet/avatar/{mxid} that'd redirect me to the /snoonet/media/v1/media/download URL.