Skip to content

Commit 02ae589

Browse files
committed
Make sure we return an integer.
1 parent c451222 commit 02ae589

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
@@ -2902,7 +2902,7 @@ private function check_if_status_favourited( $user_id, $post_id ) {
29022902
}
29032903

29042904
private function get_post_favourite_count( $post_id ) {
2905-
return get_post_meta( $post_id, 'enable-mastodon-apps-favourite-count', true );
2905+
return intval( get_post_meta( $post_id, 'enable-mastodon-apps-favourite-count', true ) );
29062906
}
29072907

29082908
public function api_favourites( $request ) {

0 commit comments

Comments
 (0)