mirror of
https://github.com/flarum/core.git
synced 2025-05-07 07:55:44 +02:00
The default first post number is '1', so we scroll to that if we're calling `m.route.set` without a `near` parameter, as that means we're scrolling to the top. This was present in beta 13's implementation, but accidentially omitted in 988b6c9. We also remove unnecessary typecasting for simpler logic and increased consistency with beta 13.