Skip to content

Commit 0d255d2

Browse files
committed
change priority
because of #182
1 parent 57c33e5 commit 0d255d2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

includes/class-activitypub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static function init() {
2222
\add_post_type_support( $post_type, 'activitypub' );
2323
}
2424

25-
\add_action( 'transition_post_status', array( '\Activitypub\Activitypub', 'schedule_post_activity' ), 10, 3 );
25+
\add_action( 'transition_post_status', array( '\Activitypub\Activitypub', 'schedule_post_activity' ), 33, 3 );
2626
\add_action( 'wp_trash_post', array( '\Activitypub\Activitypub', 'trash_post' ), 1 );
2727
\add_action( 'untrash_post', array( '\Activitypub\Activitypub', 'untrash_post' ), 1 );
2828
}

includes/class-hashtag.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class Hashtag {
1212
*/
1313
public static function init() {
1414
if ( '1' === \get_option( 'activitypub_use_hashtags', '1' ) ) {
15-
\add_filter( 'wp_insert_post', array( '\Activitypub\Hashtag', 'insert_post' ), 99, 2 );
16-
\add_filter( 'the_content', array( '\Activitypub\Hashtag', 'the_content' ), 99, 2 );
15+
\add_filter( 'wp_insert_post', array( '\Activitypub\Hashtag', 'insert_post' ), 10, 2 );
16+
\add_filter( 'the_content', array( '\Activitypub\Hashtag', 'the_content' ), 10, 2 );
1717
}
1818
}
1919

0 commit comments

Comments
 (0)