mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 11:52:56 +08: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
|
@ -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 New Issue
Block a user