gnu-social/lib
Diogo Peralta Cordeiro 6028175bfc [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-02-21 16:03:46 +00:00
..
action Set HTTP status codes with http_​response_​code() 2020-08-04 14:12:17 +03:00
activitystreams Avoid ordering just by a timestamp 2020-09-15 16:59:27 +03:00
admin [MODULES] Make disable in admin panel effective 2019-09-12 04:50:46 +01:00
api Remove "magic quotes" code and avoid wrong order implode 2020-09-15 14:59:27 +03:00
application [LIB_REFACTOR] Fix requires 2019-09-03 03:33:13 +01:00
cache [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
database Various fixes 2020-10-11 18:29:47 +03:00
exceptions [TheFreeNetwork] Do not allow lower priority protocols to handle remote actors already handled by the higher ones 2020-08-27 01:32:15 +01:00
feeds Set HTTP status codes with http_​response_​code() 2020-08-04 14:12:17 +03:00
groups [DATABASE] Fix remaining misuses of SQL's GROUP BY 2020-08-10 19:29:04 +03:00
im [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
media [Media] Fix issues with database file storage 2021-02-21 16:03:46 +00:00
modules Various fixes 2020-10-11 18:29:47 +03:00
notices Clear out potential duplicates when semi-joining a union 2020-09-21 22:25:33 +03:00
portablecontacts [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
profile [DATABASE] Check SQL boolean values with "IS TRUE" 2020-07-21 18:06:39 +03:00
queue [ActivityPub] Implement Failed Queue 2020-08-29 20:32:21 +01:00
search Avoid ordering just by a timestamp 2020-09-15 16:59:27 +03:00
ui Avoid ordering just by a timestamp 2020-09-15 16:59:27 +03:00
util [Media] Fix issues with database file storage 2021-02-21 16:03:46 +00:00