Commit Graph

82 Commits

Author SHA1 Message Date
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 f3c2048c62 [NICKNAME] Add nickname min length config and check it in Nickname::normalize 2021-04-14 15:37:24 +00:00
Hugo Sales aa58c3520c Duplicate src/Util/Exception/NicknameTooLongException.php history in src/Util/Exception/NicknameTooShortException.php history. 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 120011a2d0 [TESTS] Fix error when testing cold redis cache 2021-04-14 15:37:24 +00:00
Hugo Sales c8b2ce6694 [TESTS] Add tests for the bitmap utility and fix implementation 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 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
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 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
Hugo Sales 9291bfbecb [UTIL] Add Common::array_remove_keys 2021-04-14 15:37:21 +00:00
Hugo Sales 34890aff90 [FORMATTING] Add option to split a string to array by both a comma and a space 2021-04-14 15:37:21 +00:00
Hugo Sales 503fa2e537 [FORM] Add DataTransformer to and from array 2021-04-14 15:37:21 +00:00
Hugo Sales f907843d43 [UTIL][NICKNAME][FIX] Add self to constant 2021-04-14 15:37:21 +00:00
Hugo Sales 51f65edb55 [UTIL] Update Formatting::{toString,toArray} to allow spliting by either space or comma 2021-04-14 15:37:21 +00:00
Hugo Sales 292d98a33c [LIB][Util] Update Common::setConfig to throw an exception if appropriate, add Formatting::{toString,toArray} 2021-04-14 15:37:21 +00:00
Hugo Sales 13244c1e37 [UTIL][NICKNAME] Small refactor and remove the check between user nickname and group_alias, as these will have different semantics 2021-04-14 15:37:21 +00:00
Hugo Sales 0af82054ff [COMMON][SECURITY][WRAPPER] Added security service static wrapper and Common::getUser 2021-04-14 15:37:21 +00:00
Hugo Sales f26b488045 [NOTIFICATION][DATABASE] Update user notification prefs table, implementation of Notification and define a base class for notification transport 2021-04-14 15:37:21 +00:00
Hugo Sales 0ef9223803 [LOGIN] Implement password checking and related systems 2021-04-14 15:37:21 +00:00
Hugo Sales 162a955f41 [UTIL] Update Common::config to ensure the values queried exist 2021-04-14 15:37:21 +00:00
Hugo Sales 958d5bfe22 [LIB][Util] Remove Functional::arity as it got merged upstream as Functional\ary 2021-04-14 15:37:21 +00:00