Skip to content

Commit

Permalink
FIX: regression and attempts to have clearer naming (#7701)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaffeux committed Jun 5, 2019
1 parent 0fd7f74 commit df6d46b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/assets/javascripts/discourse/models/post.js.es6
Expand Up @@ -55,8 +55,12 @@ const Post = RestModel.extend({
},

@computed("post_number", "topic_id", "topic.slug")
url(postNr, topicId, slug) {
return postUrl(slug || slug, topicId || this.get("topic.id"), postNr);
url(post_number, topic_id, topicSlug) {
return postUrl(
topicSlug || this.topic_slug,
topic_id || this.get("topic.id"),
post_number
);
},

// Don't drop the /1
Expand Down

0 comments on commit df6d46b

Please sign in to comment.