File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 8282*/
8383
8484// filter output
85- $ json = \apply_filters ( 'activitypub_json_author_array ' , $ json );
85+ $ json = \apply_filters ( 'activitypub_json_author_array ' , $ json, $ author_id );
8686
8787/*
8888 * Action triggerd prior to the ActivityPub profile being created and sent to the client
8989 */
90- \do_action ( 'activitypub_json_author_pre ' );
90+ \do_action ( 'activitypub_json_author_pre ' , $ author_id );
9191
9292$ options = 0 ;
9393// JSON_PRETTY_PRINT added in PHP 5.4
102102 *
103103 * @param int $options The current options flags
104104 */
105- $ options = \apply_filters ( 'activitypub_json_author_options ' , $ options );
105+ $ options = \apply_filters ( 'activitypub_json_author_options ' , $ options, $ author_id );
106106
107107\header ( 'Content-Type: application/activity+json ' );
108108echo \wp_json_encode ( $ json , $ options );
109109
110110/*
111111 * Action triggerd after the ActivityPub profile has been created and sent to the client
112112 */
113- \do_action ( 'activitypub_json_author_post ' );
113+ \do_action ( 'activitypub_json_author_post ' , $ author_id );
You can’t perform that action at this time.
0 commit comments