mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
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:
parent
d1474e94a1
commit
fd4ce6ab8f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user