matrix-org / matrix-ircd

An IRCd implementation backed by Matrix.
Apache License 2.0
224 stars 41 forks source link

Wrong media URLs shown #41

Closed madduck closed 7 years ago

madduck commented 7 years ago

I just noticed that while Riot showed me a screenshot in a room, which had the URL (not the thumbnail URL, but the one of the actual image)

https://matrix.madduck.net/_matrix/media/v1/download/gruenhage.xyz/wPginFhvkMwSxTGvQIMpaJsV

this was displayed in the IRC channel seen through matrix-ircd as:

https://matrix.madduck.net//media/r0/download/gruenhage.xyz/wPginFhvkMwSxTGvQIMpaJsV

which is a 404. There are two differences:

erikjohnston commented 7 years ago

https://github.com/matrix-org/matrix-ircd/commit/cac14b6ba329c5e54311b4e6ea07fd165a68d0e5 should fix this