1
0
mirror of https://github.com/flarum/core.git synced 2025-05-07 07:55:44 +02:00
Alexander Skvortsov 0650788e7c Fix scolling to first post via m.route.set
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.
2020-10-16 16:30:27 -04:00
..
2018-06-20 13:20:31 +09:30
2018-06-20 13:20:31 +09:30
2020-09-23 22:40:37 -04:00