Hugo Sales
abe35428da
[CORE][DB] Rename App\Core\DB\DB to App\Core\DB
2022-03-28 20:59:14 +01:00
Hugo Sales
ca5520edbf
[PLUGIN][WebHooks] Add hook for subscriptions
2022-03-28 20:59:14 +01:00
Diogo Peralta Cordeiro
e3e14c53ef
[PLUGIN][ActivityPub] Model/Note->toJson federate the url, even though it's the same as the id
2022-03-28 20:59:14 +01:00
Diogo Peralta Cordeiro
be33c20614
[PLUGIN][ActivityPub] Improve flexibility of Type layer, accomodate more elaborate understanding of Group Announces after FEP-2100 development
2022-03-28 20:58:48 +01:00
Diogo Peralta Cordeiro
7305a725cb
[PLUGIN][UnboundGroup] First steps on implementing AP FEP-2100
2022-03-28 20:57:43 +01:00
Diogo Peralta Cordeiro
fd4c3b0e68
[PLUGIN][Embed][Test] Move Test to correct location
2022-03-28 20:53:50 +01:00
Diogo Peralta Cordeiro
16f51e5143
[COMPONENT][Notification] ->getSubscribers() should not be pre-included
...
Notification bug fix on Subscription component
Correct docblock
2022-03-28 20:53:19 +01:00
Diogo Peralta Cordeiro
ba4230447e
[COMPONENT][Group] Add orderBy to query, as otherwise the feed order is wrong
2022-03-28 20:49:28 +01:00
Diogo Peralta Cordeiro
7463044971
[COMPONENT][Circle] Ensure strict typing on getter
2022-03-28 20:48:29 +01:00
Hugo Sales
7027633ed5
[PLUGIN][WebHooks] Make request method configurable
...
This way, PUT can be used, which doesn't seem to be the standard, so isn't the default, but which makes sense to me, as it doesn't have a response, which we don't care about anyway
2022-03-24 00:51:00 +00:00
Hugo Sales
48b42c539c
[PLUGINS][WebHooks] Use ActivityPub to serialize the activity, so the object is included
2022-03-24 00:51:00 +00:00
Hugo Sales
d41a67a9f9
[PLUGIN][WebHooks] Add WebHooks plugin, which allows for sending a POST request to an external resource when a notification or a follow occurs
2022-03-24 00:51:00 +00:00
Diogo Peralta Cordeiro
13f22c911c
[COMPONENT][Notification] Feed: Fix typo in query
2022-03-23 16:09:13 +00:00
Diogo Peralta Cordeiro
56b8710b26
[PLUGIN][ActivityPub][Notification] Fix some issues with targetting
2022-03-23 13:23:44 +00:00
Diogo Peralta Cordeiro
e63c310d70
[COMPONENT][Notification] Always pre-add Actor subscribers when notifying
2022-03-23 13:23:44 +00:00
Diogo Peralta Cordeiro
03f449035a
[PLUGIN][ActivityPub][Model][Activity] Sometimes we don't have a local, move on with encapsulated
2022-03-23 13:23:44 +00:00
Diogo Peralta Cordeiro
8808195a80
[PLUGIN][ActivityPub][Test] Test @language handling
2022-03-23 13:23:44 +00:00
Diogo Peralta Cordeiro
45344c80d1
[PLUGIN][ActivityPub][Model][Note] Fix @language handling
2022-03-23 13:23:43 +00:00
Diogo Peralta Cordeiro
7eddbd343d
[PLUGIN][ActivityPub][Test] Add Like{Note} fixture
2022-03-23 13:23:43 +00:00
Diogo Peralta Cordeiro
259d2da05a
[CORE][Controller] Add default handler for when using http methods
2022-03-23 13:23:43 +00:00
Diogo Peralta Cordeiro
2f7fdf6ee4
[PLUGIN][ActivityPub][Test] Activity: Create Page
...
Fixed a couple of bugs
2022-03-19 22:21:35 +00:00
Diogo Peralta Cordeiro
6955872e05
[PLUGIN][ActivityPub][Model][Activity] toJson: When in activity context, use object's context if available
2022-03-19 22:20:32 +00:00
Diogo Peralta Cordeiro
23e88b30a6
[COMPONENT][Blog] This is not used for replies
2022-03-19 22:18:33 +00:00
Diogo Peralta Cordeiro
60713878f0
[TESTS] Load languages prior to remaining fixtures
2022-03-19 22:18:00 +00:00
Diogo Peralta Cordeiro
06c67b31c2
[PLUGIN][ActivityPub][Model][Note] toJson: Respect source attribute and @language from context
2022-03-19 18:01:25 +00:00
Diogo Peralta Cordeiro
a08b661779
[COMPONENT][Group] Cast integer string to int when getting group from context
2022-03-19 18:01:25 +00:00
Diogo Peralta Cordeiro
0649a5154c
[PLUGIN][ActivityPub][Test][Model][Note] fromJson
2022-03-19 18:01:24 +00:00
Hugo Sales
91fecd77ba
[TOOLS][DOCKER] Use a more robust way to check for database availability
2022-03-19 17:20:12 +00:00
Hugo Sales
e22fe55bbe
[TOOLS] Add .well-known/acme-challenge/ root certbot to nginx container, to allow certbot certificate renewals
2022-03-19 07:32:01 +00:00
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
63ef9292f3
[DEPENDENCIES] Update dependencies
2022-03-13 18:17:32 +00:00
Hugo Sales
cbae649991
[PLUGIN][ActivityPub][TESTS] Move ActivityPub test fixtures to new facility
2022-03-13 18:11:11 +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
390c532456
[PLUGIN][ActivityPub][Tests] Create Actor Tests
2022-03-13 16:00:35 +00:00
Diogo Peralta Cordeiro
636cb681d6
[PLUGIN][ActivityPub][Tests] Create a TestCase for the plugin
2022-03-13 15:54:14 +00:00
Diogo Peralta Cordeiro
7d84323df4
[PLUGIN][ActivityPub][Tests] Add some fixtures for GNU social's
2022-03-13 15:53:21 +00:00
Diogo Peralta Cordeiro
2d7850ccfb
[PLUGIN][ActivityPub][Tests] Borrow test fixtures from Lemmy
2022-03-13 15:52:48 +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
eb3c848fc8
[TOOLS][TESTS] Ensure database schema is up to date in tests
2022-03-13 14:22:18 +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
8433771465
[TOOLING][TESTS] Allow specifying any phpunit flag when invoking make
...
Examples:
make test -- --filter 'method'
make test -- directory
2022-03-10 01:23:36 +00:00
Hugo Sales
0ce5eba355
[PLUGINS][Favourite][RepeatNote][DeleteNote][WebMonetization] Make use of 'activitypub_handler' more readable
2022-03-10 00:40:54 +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