FIX: regression and attempts to have clearer naming (#7701)

FIX: regression and attempts to have clearer naming (#7701)

diff --git a/app/assets/javascripts/discourse/models/post.js.es6 b/app/assets/javascripts/discourse/models/post.js.es6
index fb20564..00f60bb 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

GitHub sha: df6d46b2

1 Like