Skip to content

Commit 3382371

Browse files
committed
Remove WP_Post requirement since it causes fatals
1 parent 6414e9a commit 3382371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/class-mastodon-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ private function normalize_whitespace( $post_content ) {
10341034
return trim( $post_content );
10351035
}
10361036

1037-
private function get_status_array( \WP_Post $post, $data = array() ) {
1037+
private function get_status_array( $post, $data = array() ) {
10381038
$meta = get_post_meta( $post->ID, 'activitypub', true );
10391039
$feed_url = get_post_meta( $post->ID, 'feed_url', true );
10401040

0 commit comments

Comments
 (0)