Open jjj333-p opened 9 months ago
sample entry for reference
dendrite=# select * from mediaapi_media_repository limit 1;
media_id | media_origin | content_type | file_size_bytes | creation_ts | upload_name | base64hash | user_id
------------------------------------------------------------------+--------------+--------------+-----------------+---------------+-------------+---------------------------------------------+---------------------
17b02f956043ff5c94ed49e8c38092a3fe2e7243ae9d17b4914433f16f266a9c | pain.agency | image/png | 53843 | 1694142275962 | works.png | osSwtAvXJ7MEGokTHuFZmz8GOGdbRubyVHZEUZ7JT0M | @jjj333:pain.agency
(1 row)
dendrite=#
in this case it seems clear that it would be easy to delete specific media from a user or server, however it seems i was incorrect with how the storage of the files work. perhaps still the file size could be edited and then the script writes an alias to a file in place of where it is in the media folder. i know if the size doesnt match though it will error and not serve the media.