From df6d46b235a25b692c9138b3bc93dcb7a80db4cf Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 5 Jun 2019 11:23:30 +0200 Subject: [PATCH] FIX: regression and attempts to have clearer naming (#7701) --- app/assets/javascripts/discourse/models/post.js.es6 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/models/post.js.es6 b/app/assets/javascripts/discourse/models/post.js.es6 index fb205649e65..00f60bb358c 100644 --- a/app/assets/javascripts/discourse/models/post.js.es6 +++ b/app/assets/javascripts/discourse/models/post.js.es6 @@ -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