mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
Let's switch back to using post numbers rather than last
for links to
the last post. We'll keep support for the old format, but start linking directly to the last post.
This commit is contained in:
parent
cc1bbf3a7b
commit
6048c9e100
1 changed files with 1 additions and 5 deletions
|
@ -73,11 +73,7 @@ Discourse.Topic = Discourse.Model.extend({
|
|||
urlForPostNumber: function(postNumber) {
|
||||
var url = this.get('url');
|
||||
if (postNumber && (postNumber > 0)) {
|
||||
if (postNumber >= this.get('highest_post_number')) {
|
||||
url += "/last";
|
||||
} else {
|
||||
url += "/" + postNumber;
|
||||
}
|
||||
url += "/" + postNumber;
|
||||
}
|
||||
return url;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue