e5ee31a2fe
[UTIL] Add option for setting a file suffix on TemporaryFile constructor and add missing TemporaryFileException
2021-04-30 23:08:08 +01:00
e08767cec0
[UTIL] Fix remove affix utilities, so they only try to remove an affix if the string starts/ends with it
2021-04-28 15:00:04 +00:00
b4ad396cd1
[FORMATTING] Add utilities to remove affixes from strings
2021-04-27 20:52:12 +00:00
9b3ccac246
[UTIL] Add TemporaryFile class, courtesy of Alexei Sorokin from v2, a class that ensures files stored in /tmp are removed, as it doesn't happen in some cases
2021-04-27 18:10:18 +00:00
1df7be7e8a
[UTIL] Add method to validate url
2021-04-27 18:10:18 +00:00
4649ee9e71
[DB] Make DB::findOneBy throw a different exception if two values are found
2021-04-27 18:10:18 +00:00
cc47cda3d1
[TESTS] Fix Nickname test
2021-04-23 15:38:26 +00:00
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
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
6be1622fd0
[DB][FKEY] Temporarily disable foreign key mapping, as there seems to be a bug in doctrine, which is under investigation
2021-04-14 15:37:24 +00:00
d0fd0e6c6c
[DB] Remove unique constraint from GSActor.nickname and fix register and related functionality
2021-04-14 15:37:24 +00:00
079d230959
[NICKNAME] Don't throw when normalizing reserved nicknames
2021-04-14 15:37:24 +00:00
637c25d5fe
[WEB] Fix translations and small inconsistency when opening on web
2021-04-14 15:37:24 +00:00
051720a686
[TESTS] Add tests to all relevant methods under App\Util and fix errors that popup
2021-04-14 15:37:24 +00:00
f3c2048c62
[NICKNAME] Add nickname min length config and check it in Nickname::normalize
2021-04-14 15:37:24 +00:00
aa58c3520c
Duplicate src/Util/Exception/NicknameTooLongException.php history in src/Util/Exception/NicknameTooShortException.php history.
2021-04-14 15:37:24 +00:00
cafd9a39a0
[TESTS] Add tests of Common and fix small oddities that pop up
2021-04-14 15:37:24 +00:00
120011a2d0
[TESTS] Fix error when testing cold redis cache
2021-04-14 15:37:24 +00:00
c8b2ce6694
[TESTS] Add tests for the bitmap utility and fix implementation
2021-04-14 15:37:24 +00:00
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
f11f9040b1
[TESTS] Add App\Core\Cache test
2021-04-14 15:37:24 +00:00
João Brandão
5e26359783
[UI][TIMELINES] Refactored query for public stream
2021-04-14 15:37:23 +00:00
Diogo Machado
1abc3e3e7d
[STATIC ANALYSIS] Started removal process for the errors found by PHPStan
2021-04-14 15:37:23 +00:00
Daniel
696ebe60e0
[Poll] Restructured templates, added misssing poll related css
2021-04-14 15:37:23 +00:00
Daniel
168b7d313a
[Poll] Polls now have an associated note, poll templates, start_show_styles event, started css
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
Daniel
630ef3e826
[FORM] Implement ActorArrayTransformer
2021-04-14 15:37:23 +00:00
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
5cced1c9ed
[DOCUMENTATION][REFACTOR] Add documentation to all flagged function and do some small cleanup
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
Hugo Sales
db608ca3c1
[UTILS] Make bitmap not use a static class var and set object properties as lowercase
2021-04-14 15:37:22 +00:00
Hugo Sales
7e7bfd1958
[EXCEPTION] Make findOne return NotFoundException
2021-04-14 15:37:22 +00:00
Hugo Sales
9f4a53dbbd
[EXCEPTION] Add base class to invalid form exception and add URL arguments to redirect exception
2021-04-14 15:37:22 +00:00
Hugo Sales
1330c96681
[UTIL] Update bitmap base class, making using easier
2021-04-14 15:37:22 +00:00
Hugo Sales
1c37eb7c72
[UI] Display error when submitted form is invalid
2021-04-14 15:37:22 +00:00
Hugo Sales
749bec5d52
[EXCEPTION][UI][UX] Add RedirectException, which can be thrown anywhere to redirect somewhere, and an exception handler
2021-04-14 15:37:22 +00:00
Hugo Sales
5cf7050008
[Media] Display images and videos inline in notes
2021-04-14 15:37:22 +00:00
rainydaysavings
af3ed18d48
[UI][TWIG] Fixing note actions placement and size, more descriptive rules
2021-04-14 15:37:22 +00:00
Hugo Sales
736fb672a5
[EXCEPTION] Fix exceptions not being translated
2021-04-14 15:37:22 +00:00
Hugo Sales
e13e763d5c
[NOTE][UI] Add note replying and UI displaying
2021-04-14 15:37:22 +00:00
Hugo Sales
d4813b4ce9
[UTIL][Common] Fix import
2021-04-14 15:37:22 +00:00
Hugo Sales
a752a5a07c
[UTIL][Common] Implement 'isSystemPath'
2021-04-14 15:37:22 +00:00
Hugo Sales
0508886fc4
[CORE][DB] Fix uses of db tables after previous restructure
2021-04-14 15:37:22 +00:00
Hugo Sales
37f21b516d
[EXCEPTION] Add ServerException and inherit previous throwable
...
imported from v2/5ea5d3007563f76a77efbfb66936315441922542
2021-04-14 15:37:22 +00:00
Hugo Sales
459a60d789
[MEDIA][EXCEPTIONS] Fix errors and deprecations
2021-04-14 15:37:22 +00:00
Hugo Sales
a498134b13
[AUTOGENERATED] Update autogenerated code
2021-04-14 15:37:22 +00:00
Hugo Sales
a5c97762e0
[AVATAR] Fixed avatar upload, added avatar inline download and updated template and base controller
2021-04-14 15:37:22 +00:00
Hugo Sales
6567f10e69
[UTIL] Fix and rename arrayRemoveKeys
2021-04-14 15:37:22 +00:00
Hugo Sales
0ca169aad2
[UTIL][FORM] Add form transformer array <--> string
2021-04-14 15:37:21 +00:00