DEV: hbs extensions are misleading in this case (#9170)

This would also prevent any linting tool to attempt to lint this incorrectly.
This commit is contained in:
Joffrey JAFFEUX 2020-03-11 14:42:14 +01:00 committed by GitHub
parent d1474e94a1
commit fd4ce6ab8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 2 deletions

View File

@ -261,7 +261,7 @@ module Oneboxer
quote: PrettyText.unescape_emoji(post.excerpt(SiteSetting.post_onebox_maxlength)),
}
template = File.read("#{Rails.root}/lib/onebox/templates/discourse_topic_onebox.hbs")
template = File.read("#{Rails.root}/lib/onebox/templates/discourse_topic_onebox.mustache")
Mustache.render(template, args)
end
end
@ -287,7 +287,7 @@ module Oneboxer
original_url: url
}
template = File.read("#{Rails.root}/lib/onebox/templates/discourse_user_onebox.hbs")
template = File.read("#{Rails.root}/lib/onebox/templates/discourse_user_onebox.mustache")
Mustache.render(template, args)
else
nil