Skip to content

Commit 99c5ad1

Browse files
committed
Make sure we return an integer.
1 parent df2fba7 commit 99c5ad1

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
@@ -2924,7 +2924,7 @@ private function check_if_status_favourited( $user_id, $post_id ) {
29242924
}
29252925

29262926
private function get_post_favourite_count( $post_id ) {
2927-
return get_post_meta( $post_id, 'enable-mastodon-apps-favourite-count', true );
2927+
return intval( get_post_meta( $post_id, 'enable-mastodon-apps-favourite-count', true ) );
29282928
}
29292929

29302930
public function api_favourites( $request ) {

0 commit comments

Comments
 (0)