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
Matthias Pfefferle
d226564325
prepare v1.2.0
2023-11-18 12:01:29 +01:00
Matthias Pfefferle
57b39a5c08
prepare 1.1.0
2023-11-07 10:01:03 +01:00
Matthias Pfefferle
d7810114b7
improve error messages and codes ( #532 )
...
* improve error messages and codes
* version bump
2023-10-24 13:00:22 +02:00
Matthias Pfefferle
e91334e4d7
fix following endpoint ( #531 )
...
* fix following endpoint
* version bump
2023-10-24 12:45:46 +02:00
Matthias Pfefferle
acc632f05c
prepare v1.0.8
2023-10-23 09:03:15 +02:00
Matt Wiebe
33b61ca2b9
Shortcodes: only register when needed ( #526 )
2023-10-19 14:46:31 -05:00
Matt Wiebe
ff58070a5e
Revert "Shortcodes: only register when needed"
...
This reverts commit c4daffe5c6
.
2023-10-18 16:21:20 -05:00
Matt Wiebe
c4daffe5c6
Shortcodes: only register when needed
2023-10-18 16:20:06 -05:00
Matthias Pfefferle
b1773b5a0c
version bump
2023-10-13 11:02:56 +02:00
Matthias Pfefferle
1ff8bac25a
add filter to check if blog is public ( #504 )
2023-10-12 15:52:11 +02:00
Matthias Pfefferle
2ef72a0364
API changes
2023-10-12 11:00:58 +02:00
Matthias Pfefferle
fd6cb84ba3
Fix compatibility with WebFinger and NodeInfo plugin
2023-10-11 11:09:37 +02:00
Matthias Pfefferle
1ef984da6c
fix a race condition ( #501 )
2023-10-10 20:45:32 +02:00
Matthias Pfefferle
cd6061a472
version bump
2023-10-10 20:41:57 +02:00
Matthias Pfefferle
12a9421c8c
version bump
2023-10-10 17:04:57 +02:00
Matthias Pfefferle
cbb5570a1b
add backward compatibility support ( #489 )
2023-10-10 08:12:15 +02:00
Matt Wiebe
e05176cea5
Add a ACTIVITYPUB_DISABLE_REWRITES
constant ( #490 )
2023-10-04 23:55:13 -05: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
d268bd9aee
version bump
2023-10-02 17:32:27 +02:00
Matthias Pfefferle
b4b934237d
version bump / changelog update
2023-09-22 09:40:45 +02:00
Jeremy Herve
fe07d5eb32
Blocks: short-circuit early on sites that do not support blocks ( #431 )
...
* Blocks: short-circuit early on sites that do not support blocks
Fixes #430
This is typically only the case for sites using a custom version of WordPress, like ClassicPress.
* let grunt build the markdown
* Check for block support earlier and add filter
One can now deactivate the blocks registered by ActivityPub like so:
```
add_filter( 'activitypub_site_supports_blocks', '__return_false' );
```
* Fix readme (gotta remember to use grunt)
* alias function
---------
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2023-09-15 10:38:47 +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
f49e15bfbf
Ensure everything is loaded properly after #376 ( #378 )
...
Also fixes an spl_autoload bug
2023-07-27 19:35:28 +02:00
Jeremy Herve
ca5a3e24b1
General: load plugin faster ( #376 )
...
Fixes #375
Related discussion: p1690454109597069-slack-C04TJ8P900J
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2023-07-27 15:00:08 +02:00
Matt Wiebe
1020466756
Autoloader: more precise matching ( #372 )
2023-07-26 17:46:36 -05: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
dd1c0a3bb5
Merge pull request #365 from Automattic/fix/cleanup
2023-07-20 23:30:39 +02:00
Matthias Pfefferle
3289c7bb48
Version bump
2023-07-20 13:21:29 +02:00
Matthias Pfefferle
201ee16f37
fix some issues and re-add "ACTIVITYPUB_SINGLE_USER_MODE" const
2023-07-20 10:12:59 +02:00
Matt Wiebe
3512206d48
phpcbf fixes
2023-07-19 20:39:58 -05:00
Matt Wiebe
2596713213
Lint: now clean
2023-07-18 15:02:27 -05:00
Matthias Pfefferle
c266c927da
transform users to actors
2023-06-28 14:22:27 +02:00
Matthias Pfefferle
3feef1e8cf
send user and blog activities
...
and set the blog to "single-mode"
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
133de30b68
remove wp-sweep filter, because post-types are not a problem
2023-06-15 11:44:50 +02:00
Matthias Pfefferle
750d071c8d
Merge branch 'master' into signature_verification
2023-05-22 14:50:49 +02:00
Matthias Pfefferle
68002db291
prevent sweeping of followers taxonomies
...
thanks @akirk
b0db9db87e
2023-05-22 10:58:13 +02:00
Matthias Pfefferle
25b53887ef
code improvements
2023-05-19 22:37:05 +02:00
Matthias Pfefferle
92712e1d4a
Merge branch 'master' into signature_verification
2023-05-19 12:01:53 +02:00
Matt Wiebe
6a0fc43a05
Set ACTIVITYPUB_REST_NAMESPACE
outside of init
...
Needed to prevent activation errors.
2023-05-18 19:30:08 -05:00
Django Doucet
5e4c68ab66
server init
2023-05-17 23:49:33 -06:00
Matthias Pfefferle
ec3f8454c1
Update activitypub.php
2023-05-17 10:25:31 +02:00
Matthias Pfefferle
a147d21fda
Update activitypub.php
...
NodeInfo is only initialized when blog is public
2023-05-17 10:25:00 +02:00
Matthias Pfefferle
cfb162c620
Merge branch 'master' into signature_verification
2023-05-17 09:59:02 +02:00
Matthias Pfefferle
d89c05aa49
init missing Nodeinfo endpoint
2023-05-17 09:02:09 +02:00
Matthias Pfefferle
49ee03f1f1
fix indents
2023-05-16 10:01:23 +02:00
Matthias Pfefferle
4b294bb8a6
Merge branch 'master' into signature_verification
2023-05-16 08:15:35 +02:00
Matthias Pfefferle
9cd2a04955
re-added some namespace consts
2023-05-16 08:14:04 +02:00
Matthias Pfefferle
2e537e423c
Merge branch 'master' into add/rest-namespace-constant
2023-05-16 08:10:06 +02:00
Matthias Pfefferle
ec23742b9a
Merge pull request #318 from Automattic/schedule
...
update scheduler for followers
2023-05-16 08:08:42 +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
abfa7c7969
Allow setting the REST namespace with ACTIVITYPUB_REST_NAMESPACE
2023-05-11 13:25:30 -05:00
Matthias Pfefferle
0685763424
return error if class does not exist or is not readable
2023-05-11 14:55:11 +02:00
Matthias Pfefferle
663c6315c9
make debug file optional
2023-05-11 14:40:47 +02:00
Matthias Pfefferle
cfa8974ffa
support more more depth in the namespaces
2023-05-11 14:38:57 +02:00
Matthias Pfefferle
f196047901
remove casts
...
after feedback from @akirk
2023-05-11 11:02:06 +02:00
Matthias Pfefferle
b85b0167c0
Update activitypub.php
...
Co-authored-by: Alex Kirk <akirk@users.noreply.github.com>
2023-05-11 10:53:19 +02:00
Matthias Pfefferle
b803914180
removed output formatting
2023-05-11 09:46:26 +02:00
Matthias Pfefferle
7b545b4639
remove DIRECTORY_SEPARATOR because its not used anywhere else
2023-05-11 09:09:13 +02:00
Matthias Pfefferle
baa8027e3f
check if file is_readable
...
thanks @akirk
2023-05-10 18:53:09 +02:00
Matthias Pfefferle
75c1c6a402
Update activitypub.php
...
Co-authored-by: Alex Kirk <akirk@users.noreply.github.com>
2023-05-10 18:50:20 +02:00
Matthias Pfefferle
3c02744925
Update activitypub.php
...
Co-authored-by: Alex Kirk <akirk@users.noreply.github.com>
2023-05-10 18:45:48 +02:00
Matthias Pfefferle
17b66cb23d
implement cleanup_followers
and update_followers
2023-05-10 14:18:56 +02:00
Matthias Pfefferle
655227058e
remove <p>
because of autop
2023-05-09 13:02:30 +02:00
Django Doucet
3a0fef27e0
Merge branch 'master' into signature_verification
2023-05-05 09:54:16 -06:00
Matthias Pfefferle
6b8c427d01
const to hide plugin recommendations
2023-05-05 13:58:17 +02:00
Matthias Pfefferle
e57dd0590d
Merge branch 'master' into signature_verification
2023-05-05 10:15:26 +02:00
Matthias Pfefferle
77112c441f
formatting
2023-05-05 09:57:47 +02:00
Matthias Pfefferle
0fd11d25fa
will be auto-loaded
2023-05-04 15:18:58 +02:00
Matthias Pfefferle
f1eb095add
Merge branch 'master' into schedule
2023-05-04 15:18:02 +02:00
Matthias Pfefferle
cec4ed2e3f
init follower update scheduler
2023-05-04 15:17:05 +02:00
Matthias Pfefferle
26e5a1d3f6
Merge branch 'master' into rewrite-followers
2023-05-04 09:33:55 +02:00
Matthias Pfefferle
e489a04880
remove unused constants
2023-05-04 09:32:52 +02:00
Matthias Pfefferle
22946ec779
change migration script to match plugin version
...
/cc @akirk
2023-05-02 09:27:35 +02:00
Matthias Pfefferle
a673504d36
Merge branch 'master' into rewrite-followers
2023-04-28 17:38:30 +02:00
Matthias Pfefferle
9966427fd3
Merge branch 'master' into feature/165/fediverse-biography
2023-04-28 14:36:17 +02:00
Matthias Pfefferle
5ef41dea02
schedule migration because it takes quite some time
2023-04-28 09:54:09 +02:00
Matthias Pfefferle
230aaa5b24
prepare migration
2023-04-27 14:34: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
7769d76849
use a taxonomy to save the list of followers
2023-04-21 14:56:22 +02:00
Matthias Pfefferle
c32eec2390
some code cleanup
2023-04-20 15:22:11 +02:00
Edward Ficklin
135e827e54
Merge branch 'master' into feature/165/fediverse-biography
2023-03-14 13:41:39 -04:00
Edward Ficklin
5200eb2463
define const for fedi bio meta key
2023-03-14 13:34:50 -04:00
Matthias Pfefferle
abef17b9ad
add Automattic
...
as Co-Author
2023-03-11 10:58:05 +01:00
Matthias Pfefferle
5f1859275b
version bump
2023-03-03 09:06:43 +01:00
Matthias Pfefferle
c0cb540c4d
Fix handling of password protected posts
2023-03-02 09:54:52 +01:00
Matthias Pfefferle
62ef84aff7
version bump
2023-02-20 21:19:52 +01:00
Matthias Pfefferle
21cff7f24b
version bump
2023-02-20 18:17:02 +01:00
Matthias Pfefferle
c89d8f2265
fix #269
2023-02-02 18:13:21 +01:00
Matthias Pfefferle
531bdc17b0
fix #266
2023-02-02 08:18:10 +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
Alex Kirk
4c8b191560
Remove whitespace
2023-01-27 15:48:29 +01:00
Alex Kirk
a5b3af1b3b
Move the friends parser to the Friends plugin
2023-01-27 15:48:29 +01:00
Alex Kirk
fed4fcb5b4
Short-circuit some more examples
2023-01-27 15:48:29 +01:00
Alex Kirk
738208b70d
Account for local urls with an @
2023-01-27 15:48:29 +01:00
Alex Kirk
6c03ab1704
Allow for example2-style domains
2023-01-27 15:48:28 +01:00