Fixed incorrect type on latest forum post fetching result.

This commit is contained in:
Pachira 2023-09-07 20:53:19 +00:00
parent 498ec0cf9a
commit 506d32d210

View file

@ -115,7 +115,7 @@ final class SatoriRoutes implements IRouteHandler {
'user_id' => (int)$userInfo->getId(),
'username' => $userInfo->getName(),
'user_colour' => Colour::toMisuzu($userColour),
'is_opening_post' => $postInfo->getId() === $firstPostInfo->getId(),
'is_opening_post' => $postInfo->getId() === $firstPostInfo->getId() ? 1 : 0,
];
}