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 )
...
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
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
Matthias Pfefferle
7f3d31c59e
add prev
2023-07-07 15:09:22 +02:00
Matthias Pfefferle
4b8ffc874a
add pager to followers endpoint
2023-07-07 15:02:34 +02:00
Matthias Pfefferle
eed43355b3
fix inbox
2023-07-05 15:33:07 +02:00
Matthias Pfefferle
862de71cd2
fix WebFinger for pseudo-users
2023-07-05 15:32:49 +02:00
Matthias Pfefferle
07b0ae6e2d
fix namespaces
2023-07-03 20:02:00 +02:00
Matthias Pfefferle
be07574cfe
fix code
2023-07-03 19:56:06 +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
75a77b3f5c
finalize account handling
...
still missing: publishing
2023-06-28 18:02:14 +02:00
Matthias Pfefferle
c266c927da
transform users to actors
2023-06-28 14:22:27 +02:00
Matthias Pfefferle
112eb51af1
updated signature feature to new structure
2023-06-27 14:29:42 +02:00
Matthias Pfefferle
7b9b3dbc37
add @-urls to webfinger aliases
2023-06-27 14:26:00 +02:00
Matthias Pfefferle
daf228fd44
move permanently
2023-06-27 14:26:00 +02:00
Matthias Pfefferle
c95e501f98
redirect to canonical URL if it is not an ActivityPub request
2023-06-27 14:26:00 +02:00
Matthias Pfefferle
503353bcd0
Added settings for blog-wide user
2023-06-27 14:26:00 +02:00
Matthias Pfefferle
03f2c24892
small improvements
2023-06-27 14:25:39 +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
5478be1355
a follower is now a valid ActivityPub Actor
...
this helps with API handling
2023-06-23 14:54:29 +02:00
Matthias Pfefferle
d2b7c287fc
code doc
2023-05-22 13:35:46 +02:00
Matthias Pfefferle
ec4e22f570
fix routing checks
2023-05-22 13:34:14 +02:00
Matthias Pfefferle
467a349b16
some small improvements
2023-05-22 11:31:46 +02:00
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
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