Hey there!
I have been looking all over the internet for this but had no luck, so I resorted to asking here.
Let me add a bit of context, we are creating a custom front-end using the Discourse user API. Where I was trying to render a post raw content, but images are passed like this: uploads://<id>.png so the browser can’t fetch them.
Is there any way of getting the real URL via the API? like https://custom.discourse.org/uploads/<id>.png or something of the like?
This is the code I ended up trying. It should decode to “77f164006403e10d7d40143d525f8a5d69390baf” but I get “77f13112951f458abf39d5e480c59eba10c97f31”, any idea why this might be the case? I’m not that experienced with this kinda stuff
My bad, it was being converted to lowercase before I printed the uploads:// link to the console, so decoding did not work. Using the correct casing does work!