FIX: Jump to bottom was broken by the /last path.

This commit is contained in:
Robin Ward 2014-01-31 17:55:40 -05:00
parent 3deb055110
commit 0fca760126

View file

@ -154,6 +154,7 @@ Discourse.URL = Em.Object.createWithMixins({
postStream = topicController.get('postStream');
if (newMatches[3]) opts.nearPost = newMatches[3];
if (path.match(/last$/)) { opts.nearPost = topicController.get('highest_post_number'); }
var closest = opts.nearPost || 1;
postStream.refresh(opts).then(function() {