A platform for community discussion. Free, open, simple.
FIX: regression and attempts to have clearer naming (#7701)
Joffrey JAFFEUXdf6d46b235a2
diff --git a/app/assets/javascripts/discourse/models/post.js.es6 b/app/assets/javascripts/discourse/models/post.js.es6index 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