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

This commit is contained in:
Joffrey JAFFEUX 2019-06-05 11:23:30 +02:00 committed by GitHub
parent 0fd7f74664
commit df6d46b235
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -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