Commit graph

46 commits

Author SHA1 Message Date
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
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
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
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
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
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
Matthias Pfefferle
f3d2243afb use paged instead of offset 2023-07-07 15:10:22 +02:00
Matthias Pfefferle
47957c2a6a fix code 2023-07-03 19:52:54 +02:00
Matthias Pfefferle
7c9258eb1d consistent use of namespaces 2023-07-03 19:25:49 +02:00
Matthias Pfefferle
493b8ffad5 use transformer instead of post-model 2023-07-03 17:59:42 +02:00
Matthias Pfefferle
359eabf671 use collection instead of factory 2023-07-03 11:20:44 +02:00
Matthias Pfefferle
c266c927da transform users to actors 2023-06-28 14:22:27 +02:00
Matthias Pfefferle
503353bcd0 Added settings for blog-wide user 2023-06-27 14:26:00 +02:00
Matthias Pfefferle
09518ea66b prepare pseudo users like a blog wide user.
this allows also other constructs like tag oder category users

fix #1
2023-06-27 14:25:12 +02:00
Matthias Pfefferle
a1753242f3 fix missing namespace 2023-05-19 18:03:05 +02:00
Matthias Pfefferle
dd486e552f some code cleanups 2023-05-19 12:00:11 +02:00
Matt Wiebe
3fa5e4f37e now with more use 2023-05-12 15:31:53 -05:00
Matt Wiebe
314ccf43a6 add a get_rest_url_by_path helper function, and use it 2023-05-12 15:24:24 -05:00
Matt Wiebe
abfa7c7969 Allow setting the REST namespace with ACTIVITYPUB_REST_NAMESPACE 2023-05-11 13:25:30 -05:00
Matthias Pfefferle
c32eec2390 some code cleanup 2023-04-20 15:22:11 +02:00
Matthias Pfefferle
08ce46a1a4
Merge branch 'master' into optimize-publish 2023-02-20 18:22:17 +01:00
Matthias Pfefferle
c89d8f2265 fix #269 2023-02-02 18:13:21 +01:00
Matthias Pfefferle
365d5dd499 fix outbox 2023-02-02 02:35:57 +01:00
Matthias Pfefferle
9acd0732d4 hide users that can not publish posts
fixes #230
2022-12-27 14:03:10 +01:00
Matthias Pfefferle
9869daffeb
Merge branch 'master' into feature-guidance 2022-12-07 18:03:19 +01:00
Matthias Pfefferle
35b2a9512e fix phpcs issue 2022-12-06 22:18:14 +01:00
Matthias Pfefferle
07d93e809b fix phpcs issue 2022-12-05 20:55:13 +01:00
Eana Hufwe
dacbed6614
Add Custom Post Type support to outbox API 2022-11-19 16:01:16 -08:00
44c652eba8 phpcs fixes 2022-01-27 13:09:11 +01:00
fe90988985 fixed outbox 2021-01-09 01:25:49 +01:00
c797109fd7 consistent API response, GET inbox and filterable follower list 2021-01-05 21:56:38 +01:00
c8d341ba1f unify query params 2021-01-03 20:40:53 +01:00
fb22aeae71 update to REST API changes (WP 5.5) 2020-09-18 16:36:09 +02:00
122461ab6e escape even more 2020-05-12 20:30:06 +02:00
85db6f2d7e Automated native_function_invocation fixes
`php php-cs-fixer --rules=native_function_invocation fix ./ --allow-risky=yes`
2019-12-01 21:20:26 +01:00
65034d2a76 refactorings 2019-11-18 20:57:00 +01:00
2f5bf1ccc4 explicit use of global functions 2019-09-27 10:12:59 +02:00
f80f6a791f new dispatcher class 2019-08-18 21:54:11 +02:00
8d91b213e7 fixed inbox problems with pleroma 2019-03-14 23:10:11 +01:00
e2d708d23c phpdoc 2019-02-28 19:31:55 +01:00
a6d97f8ba7 (php)doc 2019-02-24 13:01:28 +01:00
40b2651b7e big refactoring to use namespaces for a better code structure 2019-02-24 12:07:41 +01:00
Renamed from includes/class-rest-activitypub-outbox.php (Browse further)