Commit graph

164 commits

Author SHA1 Message Date
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
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
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
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
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
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
bad4ca2bbd check for a comment_post_ID
this fixes #101

direct messages will be re-added via #95
2020-12-18 17:46:03 +01:00
5d7ad7f4b2 use "pre_option_require_name_email" filter instead of "check_comment_flood"
thanks @akirk
2020-12-18 17:36:07 +01:00
e7c0526103 check if it is an explicit "undo -> follow" action 2020-12-18 17:30:17 +01:00
627100b463 fix follow/unfollow actions 2020-12-17 21:16:09 +01:00
Django Doucet
91f9c1e263 Fix Unfollow action - The type is Undo 2020-12-13 23:40:44 -05:00
Alex Kirk
953cf71994
Filter option in favor of updating the database 2020-10-22 21:29:14 +02:00
53aa974461 do not require email for AP entries 2020-10-09 13:19:17 +02:00
a875b90054 remove blocklist feature in favor of the comment blocklist 2020-09-21 13:20:39 +02:00
fb22aeae71 update to REST API changes (WP 5.5) 2020-09-18 16:36:09 +02:00
edc334a1fb add prefixes 2020-07-21 09:27:35 +02:00
d260d7c276 add support for custom post content
fix #97 #91
2020-07-21 09:23:35 +02:00
2a1cc45124 do not load NodeInfo class if blog is private 2020-05-23 12:34:42 +02:00
Matthias Pfefferle
be50451636
WordPress coding style 2020-05-19 16:45:50 +02:00
Django Doucet
3c730050b7 remove irrelevent option 2020-05-18 17:36:17 -04:00
Django Doucet
3d573aa140 Only return nodeinfo data if site is public 2020-05-18 17:32:17 -04:00
122461ab6e escape even more 2020-05-12 20:30:06 +02:00
9945aa7cf8 escape global constants and functions
* Add leading \ before function invocation to speed up resolving.
* Add leading \ before constant invocation of internal constant to speed up resolving. Constant name match is case-sensitive, except for null, false and true.
2020-05-12 19:42:09 +02:00
60ad191fdc fix follow 2020-05-04 00:06:48 +02:00
273787295a native function invocation 2020-02-22 13:02:58 +01:00
385aac3568 improve request validation and added blacklist check 2020-02-21 11:11:03 +01: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
937618101e disable broken delete activity 2019-11-27 08:25:04 +01:00
be721e851e fix #73 2019-11-24 21:25:25 +01:00
65034d2a76 refactorings 2019-11-18 20:57:00 +01:00
ad691bc488 Merge branch 'master' of https://github.com/pfefferle/wordpress-activitypub 2019-09-27 10:13:03 +02:00
2f5bf1ccc4 explicit use of global functions 2019-09-27 10:12:59 +02:00