@silverpill how do mitra media file names work? is it like a hash of the file?
Conversation
Notices
-
Embed this notice
Fox Ritch :fjoxicon:🇩🇪 (fox@social.hostnetwork.xyz)'s status on Sunday, 09-Nov-2025 21:35:27 JST
Fox Ritch :fjoxicon:🇩🇪
-
Embed this notice
silverpill (silverpill@mitra.social)'s status on Sunday, 09-Nov-2025 21:35:26 JST
silverpill
@fox Yes, it's a SHA-256 hash
-
Embed this notice
silverpill (silverpill@mitra.social)'s status on Sunday, 09-Nov-2025 21:36:57 JST
silverpill
@fox You can, but mitra automatically deletes unused files, and that may lead to conflicts. E.g. an instance deletes a file that is still used by another instance
-
Embed this notice
Fox Ritch :fjoxicon:🇩🇪 (fox@social.hostnetwork.xyz)'s status on Sunday, 09-Nov-2025 21:36:58 JST
Fox Ritch :fjoxicon:🇩🇪
@silverpill so in theory i can make multiple mitra instances share media folders without anything breaking?
-
Embed this notice
silverpill (silverpill@mitra.social)'s status on Sunday, 09-Nov-2025 22:09:19 JST
silverpill
@fox Sounds complicated
-
Embed this notice
Fox Ritch :fjoxicon:🇩🇪 (fox@social.hostnetwork.xyz)'s status on Sunday, 09-Nov-2025 22:09:20 JST
Fox Ritch :fjoxicon:🇩🇪
@silverpill maybe a system could be implemented so all the instances that share the same storage could talk together
-
Embed this notice
silverpill (silverpill@mitra.social)'s status on Tuesday, 11-Nov-2025 05:52:45 JST
silverpill
@fox It's not difficult to disable media deletion but I think you should do it in your fork. I doubt anyone else needs this feature.
-
Embed this notice
Fox Ritch :fjoxicon:🇩🇪 (fox@social.hostnetwork.xyz)'s status on Tuesday, 11-Nov-2025 05:52:47 JST
Fox Ritch :fjoxicon:🇩🇪
@silverpill i dont know alot about programming, especially with databases and postgresql spesificly is more of a blackbox to me but from what i know/theorise implementing such a system shouldnt be harder then implementing postgresql as a db for a applications, in theory you just have another database with a table where every hash is noted with a exipry data and a true or false statement if the file can be deleted. You could go further and only have one instance delete stuff.
-
Embed this notice