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
Alexei Sorokin
b65c200922
[File] Fix file deletion violating foreign keys
2020-08-13 23:56:31 +03:00
Diogo Cordeiro
b730582336
[CORE] Add GNUSOCIAL_ENGINE_REPO_URL and increase usage of GNUSOCIAL_ENGINE_URL
2019-11-21 00:21:22 +00:00
Alexei Sorokin
3f56459734
[COMPOSER] Remove some pre-composer remnants from the code
2019-11-01 14:19:42 +03:00
Miguel Dantas
c03f659efb
[Embed] Fix use of undefined img_data
...
Got error 'PHP message: PHP Notice: Undefined variable: img_data in /var/www/html/plugins/Embed/EmbedPlugin.php on line 544'
2019-09-03 03:29:32 +01:00
Diogo Cordeiro
0c2c3ec862
[CORE] Plugin API now extends a new Module API
2019-08-24 01:59:33 +01:00
Miguel Dantas
350cde08d8
[Embed] Added support for inline images
2019-08-22 03:13:58 +01:00
Miguel Dantas
2519431f02
[Embed] Added support for inline images
2019-08-21 16:54:46 +01:00
Miguel Dantas
b38e71e544
[Embed] Only resize thumbnail if it's bigger than the desired size
2019-08-21 16:54:46 +01:00
Miguel Dantas
52310a8ad8
[Embed] Fixed error related to oembed action
2019-08-07 23:57:40 +01:00
Miguel Dantas
6d552f15b6
[Embed] Resize thumbnails fetched by Embed to avoid keeping original images when we need only 128x128. Size configurable in config.php
2019-08-03 17:49:36 +01:00
Miguel Dantas
ba15724a62
[FORMAT][Embed] Ran php-cs-fixer on Embed's files and small style fixes
2019-08-03 17:49:33 +01:00
Miguel Dantas
07b4cfaeae
[Embed] Hide error from the UI and just don't display an image if the remote image is not valid
2019-08-03 17:49:10 +01:00
Miguel Dantas
c9379b3608
[Embed] Fix bug where we we're losing track of a file, in case the image needed to be reencoded
2019-08-03 17:49:10 +01:00
Miguel Dantas
d66828c2bf
[Embed] Fixed bug where sometimes images were written outside the site root
2019-08-03 17:49:09 +01:00
Miguel Dantas
a244f3ba4d
[Embed] Removed old oEmbed and OpenGraph implementation
2019-08-03 17:49:09 +01:00
Miguel Dantas
0c20d35206
[Embed] Refactoring and bug fixing
2019-08-03 17:49:09 +01:00
Miguel Dantas
462ea26303
[Embed] Using oscarotero/Embed as first attempt to get oEmbed/OpenGraph data, fallback
...
to previous implementation otherwise.
2019-08-03 17:49:09 +01:00
Miguel Dantas
2a2b3f72fb
[Embed][DB] Renaming the 'file_oembed' table to 'file_embed' on upgrade
2019-08-03 17:48:28 +01:00
Miguel Dantas
52819d39d9
[OEmbed][Embed] Renamed OEmbed plugin to Embed
2019-08-03 17:48:26 +01:00