c3eda07521
[Media] EncoderPlugins should handle the views that concern them
...
Ensure the intended filetypes and mimetypes during Vips conversions (part 2)
Sanitize Attachments instead of Validate (part 2)
Various bug fixes
2021-07-22 21:10:45 +01:00
5f9b61f4bf
[AUTOGENERATED] Update autogenerated code
2021-05-05 16:03:03 +00:00
6aea20db05
[Embed] Do not create AttachmenThumbnail
2021-05-02 00:49:10 +01:00
5a40d1f3e3
[Embed] Fix some bugs and change AttachmentEmbed::url to ::media_url
2021-05-01 23:58:49 +01:00
d5a7f2122a
[Embed] Local config
2021-05-01 23:57:51 +01:00
0629c1434d
[UTIL][Formatting] Add twigRenderFile
2021-04-30 23:08:08 +01:00
ebfa0e2240
[Avatar][Embed] Change use of TemporaryFile::getPath to getRealPath
2021-04-30 23:08:08 +01:00
f17d4d2d92
[Embed] Use Formatting utilities rather than substr and such
2021-04-29 18:14:49 +00:00
255055d149
[Embed] Add docblock to handle function to pass pre-commit hook
2021-04-29 17:42:31 +01:00
7f765c530e
[Embed][ENTITY] Fix embed route and use attachment_view rather than _show. Rename Entity::have to Entity::has, because grammar
2021-04-28 20:15:43 +00:00
e699824b1d
[Embed] Fix plugin. Only attempt to show an image, if we have one
2021-04-28 15:03:17 +00:00
495e66f4ae
[AUTOGENERATED] Update autogenerated code
2021-04-27 21:24:48 +00:00
0a69f6de8c
[AUTOGENERATED] Run bin/generate_entity_fields for the Embed plugin
2021-04-27 21:18:44 +00:00
72cd2e7a30
[Embed] Review and port v2 code
2021-04-27 20:56:50 +00:00
464406cccc
[Emebed] Add Embed plugin and initial cleanup
2021-04-27 18:10:18 +00:00
926d0af663
[PLUGIN] Change base class from Module to Plugin for all plugins
2021-04-19 18:51:42 +00:00
a1cac40f6a
[MODULES] Introduce the concept of abstract modules to V3
...
Introduce placeholder for abstract upload and thumb modules
Temporarily supress some bugs
2021-04-16 20:21:54 +01:00
efd2719481
[Embed][StoreRemoteMedia][Media] Copy and cleanup plugins from v2
2021-04-14 15:37:24 +00:00
f01331671c
[V3] Big Crunch
...
And so, just as it begins, so too must it end
One should not dwell and stall, for more is to come
2021-04-14 15:36:13 +00:00
f088a3d54f
[Embed] Apply encoding and increased type strictness patches from StoreRemoteMedia
2021-04-13 14:55:45 +01:00
844ecbf71e
[Embed] Revert defaults and fix Readme example
2021-02-21 20:20:48 +00:00
bc3eb7bccc
[MEDIA] Allow thumbnail only entries
2021-02-21 16:03:47 +00:00
d47bb3736e
[Media] Document recently added settings and add some more
...
Fix some buggy ones, especially Embed crop
2021-02-21 16:03:46 +00:00
ec1719e61d
[StoreRemoteMedia][Embed] Bump plugins version
2021-02-21 16:03:46 +00:00
22b5dd8567
[Media] Fix several issues
...
[StoreRemoteMedia] Upgrade plugin to use the new Media system
API Changes:
- Added getters to File to better formalize the ideas of the commit "[Media] Fix issues with database file storage"
UI Changes:
- Now presented thumbnails are actual thumbnails (bug fix)
- Attachment actions have a slightly more extended behaviour
Many other minor bug fixes...
2021-02-21 16:03:46 +00:00
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
adc689cb15
Avoid use of assignments bare inside statements
...
Either use them in a subroutine call or put parentheses around the assignment.
2020-09-08 12:42:51 +03:00
Alexei Sorokin
11ebb98919
[DATABASE] Fix use of ORDER BY with DISTINCT
...
statuses/retweets_of_me has performance fixed, so it is also stripped of its
"bad query" status.
2020-08-27 11:15:39 +03:00
Alexei Sorokin
b65c200922
[File] Fix file deletion violating foreign keys
2020-08-13 23:56:31 +03:00
Alexei Sorokin
8745a3e824
[Embed] Fix a query typo in fixup_files.php
...
Regression introduced in ec86de2bc4
2020-08-13 22:51:22 +03:00
Diogo Cordeiro
a9c365a5eb
[VersionBump] 2.0.0alpha0
...
Ran composer update and locale updater
2020-08-04 05:31:44 +01:00
Alexei Sorokin
ec86de2bc4
[DATABASE] Update "modified" in Managed_DataObject instead of a DBMS trigger
...
Instead of relying on the MariaDB's ON UPDATE CURRENT_TIMESTAMP trigger update
"modified" attributes in Managed_DataObject. Every raw query that needs
adjusting is adjusted, as they won't update "modified" automatically anymore.
The main goal behind this change is to fix "modified" updates on PostgreSQL.
2020-07-27 19:10:33 +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
Alexei Sorokin
ad91ef66bd
[SCRIPTS] Set PUBLICDIR in plugin scripts as well
2019-09-18 17:15:00 +03:00
Miguel Dantas
b41f9620fa
[LIB_REFACTOR] Fix requires
2019-09-03 03:33:13 +01: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
aee5506f00
[PLUGINS] Removed GeoURL as the service doesn't exist anymore
2019-08-24 01:59:36 +01:00
Diogo Cordeiro
0c2c3ec862
[CORE] Plugin API now extends a new Module API
2019-08-24 01:59:33 +01:00
Diogo Cordeiro
8c0601816f
[CORE] Move core plugins to a new modules directory
...
For reference (raised by rozzin in IRC):
* http://foldoc.org/module
* http://foldoc.org/library
* http://foldoc.org/plugin
As noted by XRevan86, modules are not necessarily non-essential.
As we will keep the modules directory in GS root [therefore, near to
plugins/], it is evidenced the difference between both.
This is a simple yet fundamental structural change. It doesn't change
functionality but makes clearer the way we understand GNU social's
internals.
2019-08-22 03:13:58 +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
dbde8383c9
[Embed] Fixed use of undefined variable in fixup_files script
2019-08-03 17:49:36 +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
5be705ca2a
[Embed] Updated fixup_files.php script to be able to fix broken oEmbedinfo using the --broken-oembed flag
2019-08-03 17:49:10 +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