Commit graph

1176 commits

Author SHA1 Message Date
1e6e7a505e Merge branch 'master' of github.com:Automattic/wordpress-activitypub into dev/extendable-transformers
Some checks failed
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
be8477771c Merge branch 'dev/extendable-transformers' of ssh://code.event-federation.eu:2222/Event-Federation/wordpress-activitypub into dev/extendable-transformers
Some checks failed
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) Failing after 5m14s
Unit Testing / phpunit (5.6, 6.2) (push) Has been cancelled
2023-12-12 17:00:37 +01:00
41412a9b34 temporary fixes in order to allow testing with mobilizon at this moment 2023-12-12 17:00:35 +01:00
665af185bf json: don't escape backslashes 2023-12-12 17:00:08 +01:00
Matthias Pfefferle
a2e5fc2021
Add CSS class for AP comments to allow custom designs (#602)
* Add CSS class for AP comments to allow custom designs

fix #600

* updated changelog
2023-12-12 14:01:43 +01:00
Matthias Pfefferle
9f8bad3e8d
Make Post-Template filterable (#597)
* make template filterable

prepare #596

also #519

* updated changelog
2023-12-12 13:58:44 +01:00
Matthias Pfefferle
77c508059b
Remove deprecated classes (#604) 2023-12-12 13:47:01 +01:00
a626dfce4e added completness check
Some checks failed
PHP_CodeSniffer / phpcs (push) Failing after 3m59s
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 4m24s
Unit Testing / phpunit (7.0) (push) Failing after 4m36s
Unit Testing / phpunit (7.2) (push) Failing after 4m28s
Unit Testing / phpunit (7.3) (push) Failing after 5m23s
Unit Testing / phpunit (7.4) (push) Failing after 5m22s
Unit Testing / phpunit (8.0) (push) Failing after 5m34s
Unit Testing / phpunit (8.1) (push) Failing after 5m35s
Unit Testing / phpunit (8.2) (push) Failing after 5m52s
Unit Testing / phpunit (latest) (push) Failing after 5m21s
2023-12-11 23:22:19 +01:00
5cc9c35811 added null check fro post_meta_time getter 2023-12-11 23:22:07 +01:00
b78bbbe372 better post metadata and property getter 2023-12-11 23:21:47 +01:00
6a51a303f7 added if header 2023-12-11 23:21:20 +01:00
af66737939 added languagemap sugar 2023-12-11 23:21:02 +01:00
6cbe66d121 renamed $skip_next to $_skip_next
Some checks failed
PHP_CodeSniffer / phpcs (push) Failing after 4m11s
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 4m56s
Unit Testing / phpunit (7.0) (push) Failing after 5m6s
Unit Testing / phpunit (7.2) (push) Failing after 5m8s
Unit Testing / phpunit (7.3) (push) Failing after 5m48s
Unit Testing / phpunit (7.4) (push) Failing after 5m47s
Unit Testing / phpunit (8.0) (push) Failing after 5m33s
Unit Testing / phpunit (8.1) (push) Failing after 5m46s
Unit Testing / phpunit (8.2) (push) Failing after 5m38s
Unit Testing / phpunit (latest) (push) Failing after 5m22s
2023-12-11 19:53:06 +01:00
25ecff16e7 adding todo's 2023-12-11 19:43:50 +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
ca940bfc4e smoother build process
Some checks failed
PHP_CodeSniffer / phpcs (push) Failing after 4m10s
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 4m52s
Unit Testing / phpunit (7.0) (push) Failing after 5m10s
Unit Testing / phpunit (7.2) (push) Failing after 4m55s
Unit Testing / phpunit (7.3) (push) Failing after 6m6s
Unit Testing / phpunit (7.4) (push) Failing after 5m48s
Unit Testing / phpunit (8.0) (push) Failing after 5m51s
Unit Testing / phpunit (8.1) (push) Failing after 5m43s
Unit Testing / phpunit (8.2) (push) Failing after 5m59s
Unit Testing / phpunit (latest) (push) Failing after 5m47s
2023-12-09 02:01:13 +01:00
5aaba2a907 fix typo 2023-12-08 14:09:52 +01:00
31c09cd329 fix #8, transformer not found
Some checks failed
PHP_CodeSniffer / phpcs (push) Failing after 5m0s
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 5m29s
Unit Testing / phpunit (7.0) (push) Failing after 5m38s
Unit Testing / phpunit (7.2) (push) Failing after 5m23s
Unit Testing / phpunit (7.3) (push) Failing after 6m17s
Unit Testing / phpunit (7.4) (push) Failing after 6m46s
Unit Testing / phpunit (8.0) (push) Failing after 6m31s
Unit Testing / phpunit (8.1) (push) Failing after 6m20s
Unit Testing / phpunit (8.2) (push) Failing after 6m25s
Unit Testing / phpunit (latest) (push) Failing after 6m10s
2023-12-08 14:06:13 +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
d322e8e21d ci: test fix
Some checks failed
PHP_CodeSniffer / phpcs (push) Has been cancelled
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 5m18s
Unit Testing / phpunit (7.0) (push) Failing after 5m39s
Unit Testing / phpunit (7.2) (push) Failing after 5m33s
Unit Testing / phpunit (7.3) (push) Failing after 6m27s
Unit Testing / phpunit (7.4) (push) Failing after 6m44s
Unit Testing / phpunit (8.0) (push) Failing after 6m36s
Unit Testing / phpunit (8.1) (push) Failing after 6m54s
Unit Testing / phpunit (8.2) (push) Failing after 6m6s
Unit Testing / phpunit (latest) (push) Has been cancelled
2023-12-05 13:41:26 +01:00
Matthias Pfefferle
ef96008cb3 prepare 1.3.0 2023-12-05 13:39:14 +01:00
Matthias Pfefferle
a59408d6b8 clear inbox cache after update 2023-12-05 13:39:00 +01:00
dccb6d7274 ci: try fix
Some checks failed
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
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 5m28s
Unit Testing / phpunit (7.0) (push) Has been cancelled
2023-12-05 13:34:07 +01:00
Matthias Pfefferle
24c534961a add missing nopaging attribute 2023-12-05 13:27:14 +01:00
Matthias Pfefferle
db846729db allow <p> and <br /> only for Activities 2023-12-05 13:21:24 +01:00
Matthias Pfefferle
cf541b41b4 update readme 2023-12-05 12:52:56 +01:00
Matthias Pfefferle
8c93d36d95 fix PHPCS issue 2023-12-05 12:52:28 +01:00
Matthias Pfefferle
15179f2c5a I think <p> and <br /> are fine for all usecases 2023-12-05 12:21:29 +01:00
466ed7dc2b ci: fix sequence
Some checks failed
PHP_CodeSniffer / phpcs (push) Has been cancelled
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 4m57s
Unit Testing / phpunit (7.0) (push) Failing after 4m51s
Unit Testing / phpunit (7.2) (push) Failing after 4m51s
Unit Testing / phpunit (7.3) (push) Failing after 5m47s
Unit Testing / phpunit (7.4) (push) Failing after 6m22s
Unit Testing / phpunit (8.0) (push) Failing after 6m4s
Unit Testing / phpunit (8.1) (push) Failing after 5m29s
Unit Testing / phpunit (8.2) (push) Failing after 6m3s
Unit Testing / phpunit (latest) (push) Failing after 5m42s
2023-12-04 23:09:38 +01:00
1d6493212c ci: fix typo
Some checks failed
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
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 4m43s
Unit Testing / phpunit (7.0) (push) Has been cancelled
2023-12-04 23:00:09 +01:00
1305aea3d8 ci: allow user to connect to db
Some checks failed
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
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 4m31s
Unit Testing / phpunit (7.0) (push) Has been cancelled
2023-12-04 22:53:20 +01:00
e8bf3f8afa ci: fix typo
Some checks failed
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
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 4m56s
Unit Testing / phpunit (7.0) (push) Failing after 5m11s
Unit Testing / phpunit (7.2) (push) Has been cancelled
2023-12-04 22:42:50 +01:00
c26bd22752 ci: fix systemctl is not available
Some checks failed
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
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 4m57s
Unit Testing / phpunit (7.0) (push) Has been cancelled
2023-12-04 22:36:08 +01:00
6cdfbbac22 ci: enable mariadb
Some checks failed
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
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 4m39s
Unit Testing / phpunit (7.0) (push) Has been cancelled
2023-12-04 22:28:21 +01:00
da27487106 ci: install missing mariadb-server
Some checks failed
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
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 4m41s
Unit Testing / phpunit (7.0) (push) Failing after 4m38s
Unit Testing / phpunit (7.2) (push) Failing after 4m51s
Unit Testing / phpunit (7.3) (push) Has been cancelled
2023-12-04 22:12:42 +01:00
ca94476a1d Merge commit '4a72329bbe97dcf409541bb3d144354b64ad054b' into dev/extendable-transformers
Some checks failed
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
5addca1aff transformer: make get_supported_post_types static and refactor
Some checks failed
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) Successful in 4m0s
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 4m25s
Unit Testing / phpunit (7.0) (push) Failing after 4m43s
Unit Testing / phpunit (7.2) (push) Has been cancelled
2023-12-04 19:42:38 +01:00
56939d3c2e rename filter: slashes to underscores
Some checks failed
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) Successful in 4m8s
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 5m1s
Unit Testing / phpunit (7.0) (push) Has been cancelled
2023-12-04 19:29:40 +01:00
Matthias Pfefferle
eecdb63da3 updated changelog 2023-12-04 19:09:00 +01:00
Matthias Pfefferle
5d417d9f5c remove paging from get_all_followers
and add tests
2023-12-04 10:02:30 +01:00
Sam Lade
ca9e71ffc1
Fix sending posts to at most ten instances (#588) 2023-12-02 10:58:19 +01:00
dependabot[bot]
c3a18d72dd
Update dms/phpunit-arraysubset-asserts requirement from ^0.4.0 to ^0.5.0 (#585) 2023-12-01 07:26:29 +00:00
Matthias Pfefferle
c3d5b4bb1a updated readme 2023-11-30 16:41:05 +01:00
Matthias Pfefferle
9bd8659e97 updated changelog 2023-11-30 13:04:21 +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
58101facfb ci: make sure mariadb-client is installed on the runner image
Some checks failed
PHP_CodeSniffer / phpcs (push) Successful in 4m5s
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 4m50s
Unit Testing / phpunit (7.2) (push) Has been cancelled
Unit Testing / phpunit (7.3) (push) Has been cancelled
Unit Testing / phpunit (7.4) (push) Has been cancelled
Unit Testing / phpunit (8.0) (push) Has been cancelled
Unit Testing / phpunit (8.1) (push) Has been cancelled
Unit Testing / phpunit (8.2) (push) Has been cancelled
Unit Testing / phpunit (latest) (push) Has been cancelled
Unit Testing / phpunit (7.0) (push) Has been cancelled
2023-11-30 09:03:11 +01:00
1efbb4dcd0 hotfix: phpcs error: introduce getter function for wp_post in the transformer
Some checks failed
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) Successful in 4m19s
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 4m26s
Unit Testing / phpunit (7.0) (push) Failing after 4m54s
Unit Testing / phpunit (7.2) (push) Has been cancelled
2023-11-30 08:46:15 +01:00
225e06dfec rename Transformers_Mangaer to Transformer_Factory
Some checks failed
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
Some checks failed
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