gnu-social/lib/media
Diogo Peralta Cordeiro 8bbbb890e3 [Media] Fix issues with database file storage
Fixed file quota as well.

There can be more than one file for the same filehash IF the url are different.

Possible states:
  - A file with no url and with filename is a local file.
  - A file with an url but no filename is a remote file that wasn't fetched,
    not even the thumbnail.
  - A file with an url and filename is a fetched remote file (maybe just a
    thumbnail of it).
  - A file with no filename nor url is a redirect.

Routes:
  Given these states, updated routes so that an attachment can only be
  retrieved by id and a file by filehash.

Major API changes:
  File::getByHash now returns a yield of files

Major UI changes:
  - Now remote non stored files are presented.
  - /view became preferred
  - Redirects to remote originals are preferred.

Many other minor bug fixes...
2021-07-16 19:44:42 +01:00
..
attachment.php [Media] Fix issues with database file storage 2021-07-16 19:44:42 +01:00
attachmentlist.php [Media] Fix issues with database file storage 2021-07-16 19:44:42 +01:00
attachmentlistitem.php [Media] Fix issues with database file storage 2021-07-16 19:44:42 +01:00
attachmentnoticesection.php Avoid ordering just by a timestamp 2021-07-16 19:44:41 +01:00
imagefile.php [Media] Fix issues with database file storage 2021-07-16 19:44:42 +01:00
inlineattachmentlist.php [LIB_REFACTOR] Moving files into separate semantic categories 2021-07-16 19:44:34 +01:00
inlineattachmentlistitem.php [Media] Fix issues with database file storage 2021-07-16 19:44:42 +01:00
mediafile.php [Media] Fix issues with database file storage 2021-07-16 19:44:42 +01:00