1e6e7a505e
Merge branch 'master' of github.com:Automattic/wordpress-activitypub into dev/extendable-transformers
Unit Testing / phpunit (5.6, 6.2) (push) Waiting to run
Unit Testing / phpunit (7.0) (push) Waiting to run
Unit Testing / phpunit (7.2) (push) Waiting to run
Unit Testing / phpunit (7.3) (push) Waiting to run
Unit Testing / phpunit (7.4) (push) Waiting to run
Unit Testing / phpunit (8.0) (push) Waiting to run
Unit Testing / phpunit (8.1) (push) Waiting to run
Unit Testing / phpunit (8.2) (push) Waiting to run
Unit Testing / phpunit (latest) (push) Waiting to run
PHP_CodeSniffer / phpcs (push) Has been cancelled
2023-12-12 17:07:57 +01:00
Matthias Pfefferle
431c4a2676
WebFinger: Add support for URLs ( #594 )
...
* add support for URLs
* phpcs
* simplify vars
2023-12-11 10:28:41 +01:00
Matthias Pfefferle
e5fe4f20b7
some phpcs fixes ( #590 )
...
* some phpcs fixes
* add default $hashalg
2023-12-07 12:30:44 +01:00
Matthias Pfefferle
93b2f1ee7d
Normalize attributes that can have mixed value types ( #586 )
...
* fix #571
* support empty values
* fix phpcs issues
* test for `null`
* use `object_to_uri` on followers list
2023-12-05 18:59:00 +01:00
ca94476a1d
Merge commit '4a72329bbe97dcf409541bb3d144354b64ad054b' into dev/extendable-transformers
PHP_CodeSniffer / phpcs (push) Successful in 4m34s
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 4m45s
Unit Testing / phpunit (7.0) (push) Failing after 5m19s
Unit Testing / phpunit (7.2) (push) Failing after 4m56s
Unit Testing / phpunit (7.3) (push) Failing after 5m29s
Unit Testing / phpunit (7.4) (push) Failing after 5m52s
Unit Testing / phpunit (8.0) (push) Failing after 5m36s
Unit Testing / phpunit (8.1) (push) Failing after 6m7s
Unit Testing / phpunit (8.2) (push) Failing after 5m48s
Unit Testing / phpunit (latest) (push) Failing after 5m40s
2023-12-04 19:56:02 +01:00
Matthias Pfefferle
6e7f82bf42
Activity-Type based handlers ( #551 )
...
* init
* save source id
* fix delete and add improve undo
* test new functions
* add support for threaded comments
* some formatting
* check if URL is no longer available
...and returns either status 410 or 404.
* improve delete handler
* improve update handler
* `object` and `actor` are already required by the inbox endpoint
* fix typo
* simplify queries
* cosmetics
* fix unit tests
* schedule delete comments of deleted actor (#575 )
* schedule delete comments of deleted actor
* phpcs
---------
Co-authored-by: Django Doucet <django.doucet@webdevstudios.com>
* move `get_comments_by_actor` to interactions collection
* consistent wording
* implement Tombstone
* fix follow issue
* fix inbox-create
* added missing namespace
* check if field is set
* Fix namespacing issue
* update profile and update interaction
* fields are already validated by inbox
* optimize avatar handling
---------
Co-authored-by: Django <mediaformat.ux@gmail.com>
Co-authored-by: Django Doucet <django.doucet@webdevstudios.com>
2023-11-30 11:43:48 +01:00
225e06dfec
rename Transformers_Mangaer to Transformer_Factory
Unit Testing / phpunit (7.2) (push) Waiting to run
Unit Testing / phpunit (7.3) (push) Waiting to run
Unit Testing / phpunit (7.4) (push) Waiting to run
Unit Testing / phpunit (8.0) (push) Waiting to run
Unit Testing / phpunit (8.1) (push) Waiting to run
Unit Testing / phpunit (8.2) (push) Waiting to run
Unit Testing / phpunit (latest) (push) Waiting to run
PHP_CodeSniffer / phpcs (push) Failing after 4m3s
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 4m36s
Unit Testing / phpunit (7.0) (push) Has been cancelled
2023-11-30 08:36:05 +01:00
628f3611d2
fix syntax typo
PHP_CodeSniffer / phpcs (push) Failing after 4m3s
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 5m12s
Unit Testing / phpunit (7.0) (push) Failing after 4m54s
Unit Testing / phpunit (7.2) (push) Failing after 4m41s
Unit Testing / phpunit (7.3) (push) Failing after 5m14s
Unit Testing / phpunit (7.4) (push) Failing after 5m11s
Unit Testing / phpunit (8.0) (push) Failing after 5m8s
Unit Testing / phpunit (8.1) (push) Failing after 4m59s
Unit Testing / phpunit (8.2) (push) Failing after 5m7s
Unit Testing / phpunit (latest) (push) Failing after 4m54s
2023-11-29 23:53:51 +01:00
ebb747368d
wip refactoring the transformers
PHP_CodeSniffer / phpcs (push) Failing after 2s
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 2s
Unit Testing / phpunit (7.0) (push) Failing after 2s
Unit Testing / phpunit (7.2) (push) Failing after 2s
Unit Testing / phpunit (7.3) (push) Failing after 3s
Unit Testing / phpunit (7.4) (push) Failing after 3s
Unit Testing / phpunit (8.0) (push) Failing after 3s
Unit Testing / phpunit (8.1) (push) Failing after 3s
Unit Testing / phpunit (8.2) (push) Failing after 3s
Unit Testing / phpunit (latest) (push) Failing after 3s
2023-11-29 23:46:13 +01:00
Matthias Pfefferle
1f5ef3ea2c
Add Group Identifier to WebFinger endpoint
2023-11-27 13:51:30 +01:00
804cb0af1a
fix phpcs errors
2023-11-22 14:24:25 +01:00
c857eee616
transformer: move all related code to \Activitypub\Transformer namespace
2023-11-22 13:59:39 +01:00
Matthias Pfefferle
3a5b530111
Merge branch 'master' into add/extendable-transformers
2023-11-21 15:25:07 +01:00
Matthias Pfefferle
ba44ac701b
remove var_dump
2023-11-21 15:05:47 +01:00
Matthias Pfefferle
1af821621b
check if ID is set
...
fallback to URL
2023-11-21 15:05:12 +01:00
6d40ebf30e
Automatically set the wp_post when returning a transformer instance for the wp_post
2023-11-20 19:36:45 +01:00
3ae71bb18c
fix the wrongs calld of the get_transformer
2023-11-20 18:27:29 +01:00
38be5865c2
initial draft: add/extendable-transformers
2023-11-20 18:15:54 +01:00
Jan Boddez
efd98acd0b
Fix #493 ( #497 )
...
* Fix #493
* Fix parenthesis
* Allow `p` and `br` tags only for AP comments
---------
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2023-11-13 10:19:35 +01:00
Matthias Pfefferle
6810884c52
have a filter to defer signature verification ( #435 )
2023-11-11 06:00:20 +01:00
Matthias Pfefferle
26d0d357c2
Add monthly active users ( #530 )
...
* Add monthly active users for better stats on FediDB
* use more optimized query
thanks @mattwiebe
* use transients, improve logic
---------
Co-authored-by: Matt Wiebe <wiebe@automattic.com>
2023-11-07 10:27:20 +01:00
Matt Wiebe
53adfe6b80
PHP 8.1 compatibility ( #533 )
...
* PHP 8.1 compatibility
* Update compat.php
---------
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2023-10-25 08:44:04 +02:00
Matthias Pfefferle
8078512b8c
small improvements
2023-10-24 14:54:03 +02:00
Matthias Pfefferle
e91334e4d7
fix following endpoint ( #531 )
...
* fix following endpoint
* version bump
2023-10-24 12:45:46 +02:00
Matthias Pfefferle
b946ef3de1
more consistent use of response content type ( #529 )
...
* more consistent use of response content type
* update readme
* fix typo
2023-10-23 14:57:58 +02:00
Matthias Pfefferle
0ab8df539e
simplify check
2023-10-23 08:28:30 +02:00
Matthias Pfefferle
a40bd8408a
Various improvements ( #527 )
...
* remove unused code
* check if `$data['object']` is a sting
* do not index application user
* this fixes GoToSocial errors
* do not cache errors
* re-added the fragment
See https://github.com/superseriousbusiness/gotosocial/issues/2280
* Fix coding standards
* do not verify signature on head request
2023-10-21 11:23:05 +02:00
Matthias Pfefferle
2ef72a0364
API changes
2023-10-12 11:00:58 +02:00
Matthias Pfefferle
fd6cb84ba3
Fix compatibility with WebFinger and NodeInfo plugin
2023-10-11 11:09:37 +02:00
Matt Wiebe
9907585570
Plugin loading refactor ( #485 )
...
* Plugin loading refactor
* changed load order for REST endpoints
---------
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2023-10-04 11:15:53 -05:00
Matthias Pfefferle
0d635d5dd1
More Group meta-data to play nicely with existing platforms ( #441 )
...
* more group friendly settings
* change http code
* Fix Actor-Type
* fix check if value is set
* only ignore null
* better posting_restricted_to_mods handling
* remove user namespace from moderators endpoint
thanks for the feedback @mattwiebe
2023-09-22 09:38:59 +02:00
Matthias Pfefferle
8dcbe0c6fd
fix Secops issues ( #411 )
2023-09-05 21:03:25 +02:00
Matthias Pfefferle
2705172b77
Fix some signature and application user issues ( #410 )
...
* Fix some signature and application user issues
* it seems that firefish needs at least an inbox also for application users
* prepare domain change
* use https
* fix PHPDoc
* remove image check
---------
Co-authored-by: Matt Wiebe <wiebe@automattic.com>
2023-09-01 18:32:56 +02:00
Matt Wiebe
9e73081668
deactivate the akismet nonce when processing our comments ( #391 )
2023-08-16 10:12:31 -05:00
Matthias Pfefferle
14b91cf760
remote-follow endpoint ( #392 )
...
PHP_CodeSniffer / phpcs (push) Failing after 2s
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 2s
Unit Testing / phpunit (7.0) (push) Failing after 2s
Unit Testing / phpunit (7.2) (push) Failing after 2s
Unit Testing / phpunit (7.3) (push) Failing after 2s
Unit Testing / phpunit (7.4) (push) Failing after 2s
Unit Testing / phpunit (8.0) (push) Failing after 2s
Unit Testing / phpunit (8.1) (push) Failing after 2s
Unit Testing / phpunit (8.2) (push) Failing after 2s
Unit Testing / phpunit (latest) (push) Failing after 2s
Plugin asset/readme update / Push to master (push) Failing after 1s
Adds an endpoint at `users/$user_id/follow-me` to return the follow template for a remote user, to enable following them more easily.
2023-08-11 17:41:34 -05:00
Matthias Pfefferle
69ba1c87e1
fix sticky posts endpoint
PHP_CodeSniffer / phpcs (push) Failing after 2s
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 2s
Unit Testing / phpunit (7.0) (push) Failing after 2s
Unit Testing / phpunit (7.2) (push) Failing after 2s
Unit Testing / phpunit (7.3) (push) Failing after 3s
Unit Testing / phpunit (7.4) (push) Failing after 2s
Unit Testing / phpunit (8.0) (push) Failing after 3s
Unit Testing / phpunit (8.1) (push) Failing after 2s
Unit Testing / phpunit (8.2) (push) Failing after 3s
Unit Testing / phpunit (latest) (push) Failing after 2s
Plugin asset/readme update / Push to master (push) Failing after 18s
2023-08-11 11:16:06 +02:00
Matthias Pfefferle
30eb07ba17
add missing "type"
...
see https://git.joinfirefish.org/firefish/firefish/-/issues/10650#note_1011
2023-08-11 09:23:49 +02:00
Matthias Pfefferle
fcc9603920
fix typo
2023-08-09 14:15:05 +02:00
Matthias Pfefferle
7de3696c2c
fix @context
2023-08-09 14:13:58 +02:00
Matthias Pfefferle
049046be70
update endpoints ( #390 )
...
* add collection endpoint
* show featured posts
* more consistant wording
* backwards compatibility with php7.x
* compatibility with php5.6
* use ACTIVITYPUB_AUTHORIZED_FETCH instead
because the ACTIVITYPUB_SECURE_MODE could be misinterpreted with disabling the security mechanisms completely.
* the blog user follows all authors of a blog
if not in single_user mode
* phpdoc
* adding changes based on feedback from @jeherve
* global namespace
* better hashtag handling
should also fix #373 #239
thanks @jeherve for help and feedback!
* fix workflow
2023-08-09 13:07:30 +02:00
Matt Wiebe
48632a7e1b
Add inbox create/react actions ( #387 )
...
This will help us to debug why comments fail
2023-08-02 12:03:32 -05:00
Matthias Pfefferle
062c2af4c6
use 'comment' instead of empty string
2023-08-02 18:19:21 +02:00
Matt Wiebe
5b9dadd6fd
Followers Block ( #344 )
...
Introduces a new Followers block. Proudly display your Fediverse followers to the world!
---------
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2023-07-26 15:05:41 -05:00
Matthias Pfefferle
38cd0b973b
fix ID
2023-07-25 13:47:49 +02:00
Matthias Pfefferle
921ca0c1c6
fix actions
2023-07-25 10:47:59 +02:00
Matt Wiebe
3512206d48
phpcbf fixes
2023-07-19 20:39:58 -05:00
Matthias Pfefferle
e0d767ed98
Fix WebFinger endpoint
2023-07-11 14:26:07 +02:00
Matthias Pfefferle
a461ea3b1f
some refactorings
2023-07-11 09:09:37 +02:00
Matthias Pfefferle
d5a389420d
some fixes based on the feedback of @mattwiebe
2023-07-11 08:53:18 +02:00
Matthias Pfefferle
f3d2243afb
use paged
instead of offset
2023-07-07 15:10:22 +02:00