Diogo Peralta Cordeiro
dd62825169
[PLUGIN][ActivityPub][Model][Note] fromJson: Respect source attribute and @language from context
2022-03-15 17:49:09 +00:00
Hugo Sales
27706d63f4
[PLUGIN][OAuth] Fix login for OAuth
2022-03-14 21:41:22 +00:00
Diogo Peralta Cordeiro
20f690c532
[TESTS] Fix a couple of issues from last changes
2022-03-14 18:37:39 +00:00
Diogo Peralta Cordeiro
888c3798b7
[COMPONENT][Notification] Make logic more generic and robust
...
Fixed various bugs
Some important concepts to bear in mind:
* Notification: Associated with activities, won't be reconstructed
together with objects, can be thought of as transient
* Attention: Associated with objects, will be reconstructed with them, can
be thought as persistent
* Notifications and Attentions have no direct implications.
* Mentions are a specific form of attentions in notes, leads to the creation of Attentions.
Finally,
Potential PHP issue detected and reported: https://github.com/php/php-src/issues/8199
`static::method()` from a non static context (such as a class method) calls `__call`, rather than
the expected `__callStatic`. Can be fixed by using `(static fn() => static::method())()`, but the
usage of the magic method is strictly unnecessary in this case.
2022-03-14 11:37:09 +00:00
Hugo Sales
e1cceac150
[CORE][Form][TESTS] Fix FormTest::handle
2022-03-13 18:53:53 +00:00
Hugo Sales
1d8bba3949
[TESTS][MODULES] Move Test Fixtures to tests/fixtures folder and add support for loading fixtures from components and plugins
2022-03-13 18:00:21 +00:00
Hugo Sales
18864ca9fa
[CONTROLLER][Security] Override the _next
form field in Security->register to redirect to login page
2022-03-13 16:01:51 +00:00
Diogo Peralta Cordeiro
d8108dbc32
[COMPONENT][Posting] Fix request handling issues that resulted from splitting creation and controller
2022-03-13 15:52:48 +00:00
Hugo Sales
cf05d3dbb0
[ENTITY][TESTS] Fix Note->isVisibleTo with and associated test
2022-03-13 15:03:03 +00:00
Hugo Sales
5c708af272
[CORE][Form] Remove unweildy return of form errors from Form::handle
2022-03-13 14:19:56 +00:00
Hugo Sales
9a9eed1457
[CORE][Router][Form] Add Router::sanitizeLocalURL and use it in Form::forceRedirect
2022-03-09 20:51:42 +00:00
Hugo Sales
f540711948
[CORE][GNUsocial] Remove Session parameter, as it's no longer a service. Use session from Request
2022-03-09 20:51:42 +00:00
Hugo Sales
301421ea15
[SECURITY][EVENT] Remove deprecated uses of Symfony Guard. Add LoginSucess and LoginFailure events
2022-03-09 20:51:16 +00:00
Diogo Peralta Cordeiro
893d299e29
[UTIL][Common] Respect detect language setting
...
Minor bug fix
2022-03-09 14:24:50 +00:00
Diogo Peralta Cordeiro
cac68a6372
[TESTS] Fix Entity/NoteTest
2022-03-09 01:42:11 +00:00
Diogo Peralta Cordeiro
28453c585f
[COMPONENT][Attachment][TESTS] Fix Entity/AttachmentThumbnailTest
2022-03-09 01:42:11 +00:00
Diogo Peralta Cordeiro
47f03d4c9f
[COMPONENT][Attachment][TESTS] Fix Entity/AttachmentTest
2022-03-09 01:42:06 +00:00
Diogo Peralta Cordeiro
cc4f967186
[TESTS] Fix Circle SelfTags Setting test
2022-03-09 01:40:35 +00:00
Diogo Peralta Cordeiro
e67ed58286
[TESTS] Temporarily Disable Controller/AdminTest: It seems we are repeating values arbitrarily - specially in plugins, and the generated file is just nonsense overall really, wrong sections and stuff
2022-03-09 01:40:34 +00:00
Diogo Peralta Cordeiro
416665d830
[COMPONENT][Attachment][TESTS] Fix Controller/AttachmentTest
2022-03-09 01:40:09 +00:00
Hugo Sales
46de2d47e9
[TOOLS] Add explicit return types to fix deprecation warnings raised by PHPUnit
2022-03-09 01:37:10 +00:00
Diogo Peralta Cordeiro
a37ce86d05
[TESTS] Fix DataFixtures
2022-03-07 15:26:27 +00:00
Hugo Sales
9a0c74cb0c
[CORE][SECURITY] Replicate 'next' form submission feature on login form
2022-03-07 15:26:27 +00:00
Hugo Sales
6ddc176faf
[CORE][Form] Add facilities for automattically adding a _next field to all forms, which can be customized by the in Form::create and defaults to the current URL. Usage of RedirectedException should mostly be replaced with Form::forceRedirect
2022-03-07 15:26:26 +00:00
Diogo Peralta Cordeiro
d629976322
[UTIL][Notification] Remove deprecated code
2022-03-07 15:26:24 +00:00
Diogo Peralta Cordeiro
6fa5ec3218
[CORE][Queue] Fix some minor issues
2022-03-05 14:22:44 +00:00
Hugo Sales
7814697f82
[UTIL][EXCEPTION] Forward given status code in RedirectException
2022-03-04 15:15:04 +00:00
Hugo Sales
7a8d67f1e2
[CORE][Controller] Fix bug where a JSON request could not recieve a redirect response
2022-03-04 15:14:05 +00:00
Hugo Sales
94449c9153
[CORE][Form] Add facilities for automattically adding a _next field to all forms, which can be customized by the in Form::create and defaults to the current URL. Usage of RedirectedException should mostly be replaced with Form::forceRedirect
2022-03-04 15:12:35 +00:00
Hugo Sales
7c9b01c516
[UTIL][Common] Add Common::getRequest
2022-03-04 15:09:39 +00:00
Hugo Sales
5600218924
[TWIG][I18N] Remove unnecessary wrappers for translation functions, use them directly
2022-03-01 17:25:51 +00:00
Hugo Sales
070f53c10e
[TWIG][I18N] Add transList function, which uses _m_list
2022-03-01 13:46:01 +00:00
Hugo Sales
f73e9c12ba
[CORE][I18n] Add I18n::_m_list, which formats an array of elements into a list. Limited to 5 elements, as that should be enough (tm) and ICU doesn't support this natively
2022-03-01 13:45:40 +00:00
Hugo Sales
fc203e2e38
[TWIG][TEMPLATES] Rename transchoice to trans and make it more generic
2022-03-01 13:45:11 +00:00
Hugo Sales
4cc4d06b11
[CORE][Cache] Fix bug where empty lists must be stored as a string in Redis (not supported natively), so we can't directly push to it, but the key still exists
2022-03-01 11:07:21 +00:00
Hugo Sales
d5f90a1206
[ENTITY][Note][CONFIG] Use getListPartialCache for getReplies. Add feeds/cached_replies config entry to control how many replies get cached
2022-02-28 15:47:38 +00:00
Hugo Sales
85ce6bfd41
[CORE][Cache] Add getListPartialCache, which allows for fetching a list and backing only a portion of it in the cache (useful for feeds and replies to notes, for instance)
2022-02-28 15:47:38 +00:00
Hugo Sales
45c7888676
[TOOLS] Run CS-Fixer on whole project
2022-02-28 15:47:37 +00:00
Hugo Sales
255c44bbf0
[ENTITY][LocalUser] Don't use FILTER_SANITIZE_EMAIL, use just want to validate. Up to the user to fix any errors. Use setter, rather than duplicate it's code
2022-02-28 15:47:37 +00:00
Hugo Sales
5188a473d0
[TOOLS] Fix errors reported by PHPStan
2022-02-28 15:47:37 +00:00
Diogo Peralta Cordeiro
5495a3c5ec
[ENTITY][Note] NoteType now becomes a varchar as predicted
2022-02-27 02:04:48 +00:00
Diogo Peralta Cordeiro
a9b34b75b6
[PLUGIN][TreeNotes] Correct cache issues and iterate functionality
...
- Replies ordering now correct
- Replies count added
- Posting adds new replies to cache (when concerning replies cache is not empty) and increments replies count
- Configuration to specify number of in-tree replies shown added
- TreeNotes templates was moved from core to plugin
- Button to read more replies was added
2022-02-27 01:46:25 +00:00
Diogo Peralta Cordeiro
2f539d176d
[TWIG] Implement transchoice for ICU plural translations
2022-02-27 00:44:23 +00:00
Diogo Peralta Cordeiro
d4c908c194
[CORE][Cache] Implement listPushRight
2022-02-27 00:44:23 +00:00
Diogo Peralta Cordeiro
d5731e6351
[COMPONENT][Notification] Consider attention properly in notes
2022-02-25 13:12:16 +00:00
Diogo Peralta Cordeiro
05b7f2c28b
[CORE][DB] Remove doc from deprecated DB::merge and add about DB::refresh
2022-02-23 17:42:20 +00:00
Diogo Peralta Cordeiro
c380cbd846
[COMPONENT][FreeNetwork] Mention and Group tags in notes are handled differently
2022-02-21 04:52:30 +00:00
José Marques
8b0e9c7890
[UTIL][Form][ActorForms] Fix Full Name validate: Tried to mb_strln on null
...
If the trim(string) is empty, then store null without further ado
2022-02-20 05:03:55 +00:00
Diogo Peralta Cordeiro
51cccd0155
[PLUGIN][ActivityPub] Simplify DB usage
2022-02-20 05:03:40 +00:00
Diogo Peralta Cordeiro
b6ed0b4c6c
[CORE][Actor] Fix generic profile route
2022-02-16 18:53:08 +00:00