mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
FIX: Jumping to last
was broken
This commit is contained in:
parent
d96531b163
commit
fc296d88dc
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ const DiscourseURL = Ember.Object.createWithMixins({
|
|||
postStream = topicController.get('model.postStream');
|
||||
|
||||
if (newMatches[3]) opts.nearPost = newMatches[3];
|
||||
if (path.match(/last$/)) { opts.nearPost = topicController.get('highest_post_number'); }
|
||||
if (path.match(/last$/)) { opts.nearPost = topicController.get('model.highest_post_number'); }
|
||||
const closest = opts.nearPost || 1;
|
||||
|
||||
const self = this;
|
||||
|
|
Loading…
Reference in a new issue