Follow

How does Mastodon figure out the path to a media attachment when the database only stores the filename?

· · Web · 1 · 0 · 1

@matrix Maybe a bunch of hashing magic based on the filename and username or something? It's in the source code somewhere.

@xyfdi
There's also a column called shortcode which looks like some sort of hash. I guess maybe from that.

Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.