Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
cd15158
Update follow return types and error handling
pfefferle Aug 26, 2025
0a25386
Add changelog
matticbot Aug 26, 2025
33caee1
Update includes/collection/class-following.php
pfefferle Aug 26, 2025
a55ace0
Remove obsolete changelog entry 2094-from-description
pfefferle Aug 26, 2025
183e5da
Add follow activity to outbox with private visibility
pfefferle Aug 26, 2025
38aa151
Update CLI example to use underscore in command
pfefferle Aug 26, 2025
51ece21
Revert "Update CLI example to use underscore in command"
pfefferle Aug 26, 2025
d45c63c
Merge branch 'trunk' into change/simplify-follow-returns
pfefferle Sep 24, 2025
5cecd4b
Merge branch 'trunk' into change/simplify-follow-returns
pfefferle Sep 24, 2025
1763290
Fix PHP warning in bulk edit scenario when post_author is missing (#2…
obenland Sep 24, 2025
d476c61
Add following meta key to Jetpack sync allowlist (#2226)
obenland Sep 24, 2025
fcf057c
Migration: Re-use async batch infrastructure (#1343)
obenland Sep 24, 2025
c19e96e
Register post types and meta on 'init' action (#2232)
pfefferle Sep 24, 2025
2df8c07
Bump tar-fs from 3.1.0 to 3.1.1 (#2234)
dependabot[bot] Sep 24, 2025
72d5fe8
Enhance Jetpack integration for comment meta sync (#2233)
obenland Sep 25, 2025
c04be77
Add health check for active Captcha plugins (#2231)
pfefferle Sep 25, 2025
f69aa24
Add `fetch_by_acct` and `fetch_by_various` methods to Remote_Actors (…
pfefferle Sep 25, 2025
c108c36
Add init check to get_comment_type_slugs (#2237)
obenland Sep 29, 2025
738954c
Prevent PHP Warning (#2238)
pfefferle Sep 29, 2025
512dcbe
Add row action filters and Jetpack Reader link integration (#2241)
pfefferle Sep 30, 2025
2faaaab
Move routing logic to new Router class (#2245)
pfefferle Sep 30, 2025
6d3d393
Update deploy workflow to trigger on release (#2248)
pfefferle Sep 30, 2025
a7aaddd
Update Jetpack connection check to use Manager class (#2249)
pfefferle Sep 30, 2025
63595d4
Add external link icon to Jetpack reader feed link (#2247)
pfefferle Sep 30, 2025
f89b005
Add upgrade routine to enable ActivityPub feeds in WordPress.com Read…
obenland Sep 30, 2025
4dec3c9
Improve user ID fallback and transformer logic (#2246)
pfefferle Sep 30, 2025
2c66740
Fix Reader URL generation for WPCOM environment (#2250)
pfefferle Sep 30, 2025
120df7d
Add QuoteRequest activity handler support (#2240)
pfefferle Sep 30, 2025
0ba4416
Release 7.5.0 (#2253)
pfefferle Oct 1, 2025
b7874e7
Fix release script to handle do_action_deprecated with double quotes …
obenland Oct 1, 2025
9fd20ea
Improve NodeInfo handling and add support for FEP-0151 (#2255)
pfefferle Oct 1, 2025
6be0f21
Add detailed magic method docs to ActivityPub classes (#2254)
pfefferle Oct 1, 2025
a28d39b
Fix flaky test_handle_create_check_multiple_comments test (#2262)
obenland Oct 1, 2025
5afcc60
Fix HTML entity encoding in extra field names (#2261)
obenland Oct 1, 2025
b209cfa
Fix Jetpack reader feed URL path (#2263)
obenland Oct 1, 2025
a90aaa4
Add FEP-3b86 Activity Intents support to WebFinger (#2256)
pfefferle Oct 1, 2025
5477449
Bump @wordpress/api-fetch from 7.31.0 to 7.32.0 (#2267)
dependabot[bot] Oct 2, 2025
1fa4641
Bump @wordpress/compose from 7.31.0 to 7.32.0 (#2264)
dependabot[bot] Oct 2, 2025
d062f46
Bump @wordpress/block-editor from 15.4.0 to 15.5.0 (#2265)
dependabot[bot] Oct 2, 2025
0e337d7
Add bidirectional transforms between reply and embed blocks (#2244)
obenland Oct 2, 2025
8266a43
Validate ActivityPub URLs in reply block before setting inReplyTo (#2…
obenland Oct 2, 2025
e5a2043
Improve inbox activity type handling and tests (#2260)
pfefferle Oct 2, 2025
a62cfdc
Remove duplicate webfinger_user_data filter (#2269)
pfefferle Oct 2, 2025
4c88cdf
Fix broken translation link in CONTRIBUTING.md (#2276)
edent Oct 2, 2025
de4651c
Bump @wordpress/editor from 14.31.0 to 14.32.0 (#2283)
dependabot[bot] Oct 3, 2025
01e2660
Bump @wordpress/env from 10.31.0 to 10.32.0 (#2280)
dependabot[bot] Oct 3, 2025
7db4d64
Bump @wordpress/edit-post from 8.31.0 to 8.32.0 (#2282)
dependabot[bot] Oct 3, 2025
0705d19
Fix Prettify workflow for pull requests from forks (#2277)
obenland Oct 3, 2025
b88abc7
Tests: Avoid using `runInSeparateProcess` where possible (#2275)
obenland Oct 3, 2025
7a69aa8
Update builds (again) (#2285)
pfefferle Oct 3, 2025
85b956d
Reorganize test directory structure (#2289)
obenland Oct 6, 2025
f79de51
Fix: issue #2286 – typo, improved quoting explanation, add missing i1…
Jiwoon-Kim Oct 6, 2025
a90665b
Use `bp_members_get_user_url` if available for author URLs (#2292)
pfefferle Oct 6, 2025
34cf1b5
Exclude build asset files from PHP GitHub Actions triggers (#2293)
pfefferle Oct 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/changelog/2094-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed


8 changes: 6 additions & 2 deletions includes/collection/class-following.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Following {
* @param \WP_Post|int $post The ID of the remote Actor.
* @param int $user_id The ID of the WordPress User.
*
* @return int|false|\WP_Post|\WP_Error The Outbox ID or false on failure, the Actor post or a WP_Error.
* @return \WP_Post|\WP_Error The Actor post or a WP_Error.
*/
public static function follow( $post, $user_id ) {
$post = \get_post( $post );
Expand Down Expand Up @@ -88,7 +88,11 @@ public static function follow( $post, $user_id ) {
$follow->set_object( $post->guid );
$follow->set_to( array( $post->guid ) );

return add_to_outbox( $follow, null, $user_id, ACTIVITYPUB_CONTENT_VISIBILITY_PRIVATE );
$id = add_to_outbox( $follow, null, $user_id, ACTIVITYPUB_CONTENT_VISIBILITY_PRIVATE );

if ( ! $id ) {
return new \WP_Error( 'activitypub_follow_failed', 'Failed to add follow to outbox' );
}
}

return $post;
Expand Down
2 changes: 1 addition & 1 deletion includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1545,7 +1545,7 @@ function add_to_outbox( $data, $activity_type = null, $user_id = 0, $content_vis
* @param string|int $remote_actor The Actor URL, WebFinger Resource or Post-ID of the remote Actor.
* @param int $user_id The ID of the WordPress User.
*
* @return int|false|\WP_Post|\WP_Error The Outbox ID or false on failure, the Actor post or a WP_Error.
* @return \WP_Post|\WP_Error The Actor post or a WP_Error.
*/
function follow( $remote_actor, $user_id ) {
if ( \is_numeric( $remote_actor ) ) {
Expand Down
Loading