Hugo Sales
eecef99372
[TESTS] Raise test coverage for App\Controller\Network to 100% and fixup related code
2021-05-23 19:56:45 +00:00
Hugo Sales
818a31a690
[UTIL] Provide static access to current request and utilities in Common
2021-05-12 19:33:03 +00:00
Hugo Sales
9b862d6a26
[CORE] Throw more meaningfull error when method doesn't exist in Security and Entity
2021-05-12 15:44:09 +00:00
Hugo Sales
f8107c86c5
[TESTS] Raise App\Core\DB\DB test coverage to 100% and fix issues found
2021-05-11 21:04:15 +00:00
Hugo Sales
31518f97ee
[CORE] Clarify message when calling non existent method in Entity
2021-05-06 21:54:50 +00:00
Hugo Sales
5f9b61f4bf
[AUTOGENERATED] Update autogenerated code
2021-05-05 16:03:03 +00:00
Hugo Sales
041d19a22d
[ATTACHMENTS] Don't store an attachment if it's a dupplicate, reuse it
2021-05-02 15:48:33 +00:00
Diogo Peralta Cordeiro
a5a2032e75
[ENTITY] Fix entity->has to access private properties with closure bindTo
2021-05-02 00:14:24 +01:00
Diogo Peralta Cordeiro
676210f76a
[ATTACHMENTS] Follow URL redirects and don't duplicate attachments
2021-05-02 00:00:03 +01:00
Diogo Peralta Cordeiro
5a40d1f3e3
[Embed] Fix some bugs and change AttachmentEmbed::url to ::media_url
2021-05-01 23:58:49 +01:00
Diogo Peralta Cordeiro
ced6e236ce
[ATTACHMENTS][GSFile] Rename ValidateAndStore functions
2021-05-01 23:57:51 +01:00
Hugo Sales
650bfec699
[ATTACHMENTS] In sendFile, check that file exists or show a custom exception
2021-05-01 13:02:14 +00:00
Hugo Sales
120571fa42
[DOCUMENTATION] Add high level code walkthrough to developer docs
2021-04-30 23:08:08 +01:00
Hugo Sales
93e1e4b7a9
[ENTITY] Add field size to attachments, used for quota calculations
2021-04-30 23:08:08 +01:00
Hugo Sales
d49de9d35e
[CORE] Typo in GSFile and slight Twig weirdness in base template
2021-04-28 20:16:59 +00:00
Hugo Sales
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
Hugo Sales
6da8cf7f14
[ATTACHMENTS] Add event 'AttachmentFileInfo' to allow a plugin to override the file displayed
2021-04-28 15:01:40 +00:00
Hugo Sales
c6389c63b8
[ENTITY] Add meta method 'have*' to Entity base class, which checks if a field 'isset'
2021-04-27 20:56:13 +00:00
Hugo Sales
f388554166
[ATTACHMENTS][EVENT] Add onHashFile event, which can be used to deduplicate files
...
Currently, we simply hash the contents of the file with sha256, but in the future we can use something smarter,
which could find visual feature similarity between images
2021-04-27 20:53:59 +00:00
Hugo Sales
792a9f097c
[HTTPClient] Add utility functions for all HTTP methods
2021-04-27 18:10:18 +00:00
Hugo Sales
4649ee9e71
[DB] Make DB::findOneBy throw a different exception if two values are found
2021-04-27 18:10:18 +00:00
Hugo Sales
c1db9bd0a3
[Posting] Extract and store URLs from note content. Introduce 'AttachmentStoreNew' event
2021-04-25 21:20:28 +00:00
Hugo Sales
b82658e345
[SECURITY][DB] Make user register 'atomic', by using a single transaction for inserting all objects, to avoid partial inserts
2021-04-23 12:54:25 +00:00
Hugo Sales
5ec7717fa1
[ATTACHMENTS] Move thumbnail controller to core and cleanup
2021-04-19 13:22:50 +01:00
Diogo Peralta Cordeiro
2f137f8b44
[ATTACHMENTS] Even more further refactoring
...
Introduce Encoder plugins Instead of abstract upload and thumb modules
Ported attachment routes. In v3 thumbnail depends on existing attachment
so route updated accordingly.
2021-04-19 13:22:04 +01:00
Diogo Peralta Cordeiro
0f52638a80
[ATTACHMENTS] Further refactoring
...
Some key points:
- Components and Plugins shouldn't extend Module directly
- Avatars should be fetched via GSActor ID, not by nickname as that isn't unique
- Avatar now is a separate Component
- Common file utilities are now to be placed in Core\GSFile, this will
handle storage and trigger validation
- Some bug fixes
2021-04-19 13:21:32 +01:00
Hugo Sales
f6dea6e162
[DB] Fix bug in custom criteria format wrangling
2021-04-16 20:28:39 +01:00
Hugo Sales
2f65311ae6
[DB] Allow DQL queries with table name rather than entity
2021-04-16 20:28:39 +01:00
Hugo Sales
cadd48922d
[CORE] Add functionality to App\Core\Controller to get and validate GET parameters
2021-04-16 20:28:39 +01:00
Hugo Sales
d6414e51a2
[CORE] Rename NoteScope to VisibilityScope, as it will be used for attachment visbility too
2021-04-16 20:28:39 +01:00
Hugo Sales
1fda65bc3d
[DB] Add table map which allows using table names rather than entities in Doctrine operations
2021-04-16 20:28:39 +01:00
Hugo Sales
8fc2a83e3c
[CONFIG][TWIG] Move twig config to php code to add support for placing templates in modules (plugins and components)
2021-04-16 20:21:54 +01:00
Hugo Sales
0802f7a9e3
[TWIG] Add way to launch events from TWIG, capture service and add way to render from a string
2021-04-16 20:21:54 +01:00
Hugo Sales
c5b26bcffb
[FAVOURITE] Temporary commit to fix exception in timeline
2021-04-16 20:21:54 +01:00
Diogo Peralta Cordeiro
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
Hugo Sales
d0fd0e6c6c
[DB] Remove unique constraint from GSActor.nickname and fix register and related functionality
2021-04-14 15:37:24 +00:00
Hugo Sales
637c25d5fe
[WEB] Fix translations and small inconsistency when opening on web
2021-04-14 15:37:24 +00:00
Hugo Sales
051720a686
[TESTS] Add tests to all relevant methods under App\Util and fix errors that popup
2021-04-14 15:37:24 +00:00
Hugo Sales
cafd9a39a0
[TESTS] Add tests of Common and fix small oddities that pop up
2021-04-14 15:37:24 +00:00
Hugo Sales
b855dd00ac
[LOG] Only try to log if setup, so logs can be disabled, in tests, for instance
2021-04-14 15:37:24 +00:00
Hugo Sales
d082f4249c
CACHE] Fix cache implementation with the help of tests and remove premature optimization for non-redis list caching
...
This complicated the code significantly and likely didn't help that much, if at all. The recommended setup is using Redis, anyway, which is plenty optimized
2021-04-14 15:37:24 +00:00
Hugo Sales
ffaf5da984
[TESTS] Fix unkept unit tests
2021-04-14 15:37:23 +00:00
Daniel
7a925cd9a6
[Poll] Added modified param for Poll/Poll response, added PollTest
2021-04-14 15:37:23 +00:00
Hugo Sales
256169a3c4
[GIT] Change my email to the new one in all files and bump copyright year
2021-04-14 15:37:23 +00:00
Hugo Sales
0d2cf6eaa6
[DB] Merge definition of SchemaDefDriver with SchemaDefPass for clarity
2021-04-14 15:37:23 +00:00
Hugo Sales
5cced1c9ed
[DOCUMENTATION][REFACTOR] Add documentation to all flagged function and do some small cleanup
2021-04-14 15:37:23 +00:00
Hugo Sales
fdaa89e3c9
[EVENT] Rename event names to camel case to make finding handlers easier
2021-04-14 15:37:23 +00:00
Hugo Sales
4b4da170f2
[CONFIG][CACHE] Move cache configuration from environment variables to the configuration file
2021-04-14 15:37:23 +00:00
Hugo Sales
06e92344cc
[CONFIG] Various fixes to use new configuration format
2021-04-14 15:37:23 +00:00
Hugo Sales
02c7bdf4f0
[CONFIG][DB] Remove config from the database, put it in yaml, so it can be baked into the container
2021-04-14 15:37:22 +00:00