Commit graph

190 commits

Author SHA1 Message Date
Matthias Pfefferle
e04ccdc961 fix missing namespace 2023-05-19 18:06:39 +02:00
Matthias Pfefferle
92712e1d4a
Merge branch 'master' into signature_verification 2023-05-19 12:01:53 +02:00
Matthias Pfefferle
dd486e552f some code cleanups 2023-05-19 12:00:11 +02:00
Django Doucet
f4aadc00fc phpcs 2023-05-18 00:10:03 -06:00
Django Doucet
ed77ffce26 update rest paths to namespace 2023-05-18 00:03:11 -06:00
Matthias Pfefferle
cfb162c620
Merge branch 'master' into signature_verification 2023-05-17 09:59:02 +02:00
Matthias Pfefferle
60fc581e1d coding style 2023-05-17 09:02:37 +02:00
Matthias Pfefferle
4b294bb8a6
Merge branch 'master' into signature_verification 2023-05-16 08:15:35 +02:00
Matthias Pfefferle
2e537e423c
Merge branch 'master' into add/rest-namespace-constant 2023-05-16 08:10:06 +02:00
Django Doucet
12724a3681 Switch secure_mode to a filter 2023-05-16 00:07:15 -06:00
Matthias Pfefferle
7456d36834 use const instead of -1 2023-05-15 10:48:34 +02:00
Matt Wiebe
5a91fdcf0a remove debug log 2023-05-12 15:43:04 -05: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
Matthias Pfefferle
7d5cfb3078 phpdoc 2023-05-12 10:17:36 +02:00
Matt Wiebe
abfa7c7969 Allow setting the REST namespace with ACTIVITYPUB_REST_NAMESPACE 2023-05-11 13:25:30 -05:00
Matthias Pfefferle
f196047901 remove casts
after feedback from @akirk
2023-05-11 11:02:06 +02:00
Matthias Pfefferle
b803914180 removed output formatting 2023-05-11 09:46:26 +02:00
Matthias Pfefferle
ca8aff1823 cast to bool, to be sure that '0' is false 2023-05-09 12:25:25 +02:00
Matthias Pfefferle
96953dfc7e fail early and always return $response as fallback 2023-05-09 11:57:43 +02:00
Django Doucet
f79200ef27 make webfinger route available unsigned 2023-05-05 23:44:15 -06:00
Django Doucet
9202c19730 Add secure mode to REST get requests 2023-05-05 14:39:33 -06:00
Django Doucet
6c95a23d10 phpcbf 2023-05-05 13:45:38 -06:00
Django Doucet
656a2b0f44 remove unneeded filter 2023-05-05 13:22:47 -06:00
Django Doucet
9d30f2c1dd phpcbf 2023-05-05 12:55:12 -06:00
Django Doucet
e827221ee6 service actor as application actor 2023-05-05 12:09:12 -06:00
Django Doucet
27636b62d5 Add Service actor for signing get requests 2023-05-05 12:02:12 -06:00
Django Doucet
6b68f0763d hold off secure mode 2023-05-05 07:49:27 -06:00
Matthias Pfefferle
8aa3f53dbd no need to use Followers any more 2023-05-05 10:22:01 +02:00
Matthias Pfefferle
e57dd0590d
Merge branch 'master' into signature_verification 2023-05-05 10:15:26 +02:00
Matthias Pfefferle
958b712e5b Merge branch 'signature_verification' of https://github.com/mediaformat/wordpress-activitypub into pr/299 2023-05-02 09:50:11 +02:00
Matthias Pfefferle
857fae9db1 serve_request is not needed any more
this was only for handling the signing, so no more need for that
2023-05-02 09:50:08 +02:00
Matthias Pfefferle
a673504d36
Merge branch 'master' into rewrite-followers 2023-04-28 17:38:30 +02:00
Matthias Pfefferle
ca646588d2 ignore www subdomain when comparing hosts
fix #290
2023-04-25 20:44:54 +02:00
Matthias Pfefferle
84a82c2ac4 added follower model 2023-04-24 20:46:51 +02:00
Django Doucet
f396c6da4e Optimize verification code and returns WP_Errors 2023-04-21 15:25:39 -06:00
Matthias Pfefferle
734750b796 use collection also for rest endpoints 2023-04-21 15:57:41 +02:00
Django Doucet
036ee3180b move signature verification to callback 2023-04-21 07:53:12 -06:00
Matthias Pfefferle
7769d76849 use a taxonomy to save the list of followers 2023-04-21 14:56:22 +02:00
Matthias Pfefferle
a8b963ec26 some code cleanups 2023-04-21 08:51:38 +02:00
Matthias Pfefferle
804ef25822 count only users that can publish_posts 2023-04-21 08:42:51 +02:00
Matthias Pfefferle
5a6f8aff02
Merge branch 'master' into signature_verification 2023-04-20 22:23:15 +02:00
Matthias Pfefferle
c32eec2390 some code cleanup 2023-04-20 15:22:11 +02:00
Django Doucet
30d78417d8 Fixes key retrieval 2023-04-14 23:53:43 -06:00
Django Doucet
2293c0b3d7 use verify_http_signature in validate_callback
rename verify_signature
2023-04-02 16:38:39 -06:00
Django Doucet
0c7cec3eba Fix signature parse verification 2023-04-01 10:17:56 -06:00
Django Doucet
8f80a70ee5 Merge branch 'master' into signature_verification 2023-03-11 16:12:05 -07:00
Django Doucet
a6b057b69d Merge branch 'master' into signature_verification 2023-03-11 16:10:29 -07:00
Django
af6dd43241
Merge branch 'pfefferle:master' into Comments 2023-03-10 16:34:51 -07:00
Matthias Pfefferle
08ce46a1a4
Merge branch 'master' into optimize-publish 2023-02-20 18:22:17 +01:00
Matthias Pfefferle
e2c1dc28b5 fix #281 2023-02-16 09:12:01 +01:00
Django Doucet
7e6c112679 Merge branch 'master' into Comments 2023-02-05 22:05:30 -07:00
Django Doucet
2e72e93cbd remove extra curly bracket 2023-02-04 15:37:09 -07:00
Django Doucet
627e5a9c0c Merge branch 'threaded-comments' into Comments 2023-02-04 15:35:01 -07:00
Matthias Pfefferle
c89d8f2265 fix #269 2023-02-02 18:13:21 +01:00
Matthias Pfefferle
de32cb7b73 add changes also to the object 2023-02-02 02:36:29 +01:00
Matthias Pfefferle
365d5dd499 fix outbox 2023-02-02 02:35:57 +01:00
Matthias Pfefferle
24648d6d74 fix server config
See: https://wordpress.org/support/topic/jetpack-conflict-15/
2023-01-31 09:56:48 +01:00
Django Doucet
f9c0edc681 Merge branch 'master' into Comments 2023-01-28 12:50:07 -07:00
Matthew Exon
85ca37aa1d fix code smells 2023-01-24 13:40:28 +08:00
Matthew Exon
7fa58cf26c add first unit tests for class inbox 2023-01-24 13:23:23 +08:00
Matthew Exon
6a906e5fe2 refactor support for threaded comments from ActivityPub 2023-01-24 11:09:27 +08:00
Matthew Exon
f1f3c3165d support threaded comments from ActivityPub 2023-01-24 11:07:48 +08:00
Matthias Pfefferle
bf0b51ceb3 only save public activities
first step to #72
2022-12-27 14:43:37 +01:00
Matthias Pfefferle
9acd0732d4 hide users that can not publish posts
fixes #230
2022-12-27 14:03:10 +01:00
Matthias Pfefferle
45b6e63f32 fix phpcs issues 2022-12-23 13:17:12 +01:00
Matthias Pfefferle
f1dfd52329
Merge branch 'master' into Comments 2022-12-23 12:03:13 +01:00
Django Doucet
b04538a2ab remove comment_type 2022-12-19 14:16:56 -07:00
Eana Hufwe
e48986dd99 Add Custom Post Type support to outbox API 2022-12-19 14:16:55 -07:00
Django Doucet
5dbf365c58 associate comments to back compat post 2022-12-19 14:16:54 -07:00
30a37dab6e fix webfinger for email identifiers
fix #152
2022-12-19 14:16:53 -07:00
Django Doucet
e5080f8693 code standards cleanup 2022-12-19 14:09:55 -07:00
Django Doucet
8e1c9ff6bb Replies Collection, settings, other fixes 2022-12-19 14:09:54 -07:00
Django Doucet
51643142aa coding standards 2022-12-19 14:09:54 -07:00
Django Doucet
8938c67073 Comments update 2022-12-19 14:09:53 -07:00
6772d300b4 phpcs fixes 2022-12-19 14:09:53 -07:00
338200b386 fix "Follow" issue
fix #133
2022-12-19 14:09:52 -07:00
Matthias Pfefferle
bf883418ec fix #214
thanks @mexon
2022-12-10 17:58:24 +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
d5dac9699a fix user count
props @mediaformat

fix #209
2022-12-06 22:17:06 +01:00
Matthias Pfefferle
07d93e809b fix phpcs issue 2022-12-05 20:55:13 +01:00
Matthias Pfefferle
c6657d2fa8 move method to webfinger class 2022-12-05 20:48:07 +01:00
Matthias Pfefferle
d6b7cd0235
Merge branch 'master' into feature-guidance 2022-12-05 20:30:04 +01:00
Matthias Pfefferle
229e1cd6ed
Merge pull request #172 from akirk/add-friends-plugin-support
Add a parser to the Friends Plugin
2022-12-05 20:28:53 +01:00
Eana Hufwe
dacbed6614
Add Custom Post Type support to outbox API 2022-11-19 16:01:16 -08:00
Matthias Pfefferle
fba834b15d add some guidance
based on the feedback of users and the suggestion of @akirk
2022-11-15 18:22:08 +01:00
Alex Kirk
04db99730d phpcs 2022-11-09 07:17:59 -07:00
Alex Kirk
5f6cf78da1 Add a parser to the Friends Plugin 2022-11-09 07:08:32 -07:00
b3aefc62db fix webfinger for email identifiers
fix #152
2022-05-20 08:49:05 +02:00
Django Doucet
86c796090d Signature Verification with phpseclib3 2022-02-28 16:11:04 -07:00
44c652eba8 phpcs fixes 2022-01-27 13:09:11 +01:00
7b262fd613 fix "Follow" issue
fix #133
2021-11-17 21:11:34 +01:00
Django Doucet
17c386cb9d Comments 1 2021-09-06 00:25:02 -06:00
6795d707c8 fix Inbox issue
fix `PHP Warning: Undefined variable $user_id in wp-content/plugins/activitypub/includes/rest/class-inbox.php on line 111`

https://github.com/pfefferle/wordpress-activitypub/issues/88#issuecomment-886254210
2021-07-26 09:48:51 +02:00
2646a98b46 added functional shared inbox 2021-01-09 01:26:26 +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
46436cb49b disable flood control 2020-12-28 23:33:26 +01:00