Merge pull request #4238 from techAPJ/avatar

FIX: broken onebox avatar image
This commit is contained in:
Arpit Jalan 2016-05-26 20:49:45 +05:30
commit db4443250a

View file

@ -267,7 +267,7 @@ module PrettyText
protect do protect do
v8.eval <<JS v8.eval <<JS
avatarTemplate = #{avatar_template.inspect}; avatarTemplate = #{avatar_template.inspect};
size = #{size.to_i}; size = #{size.inspect};
JS JS
decorate_context(v8) decorate_context(v8)
v8.eval("Discourse.Utilities.avatarImg({ avatarTemplate: avatarTemplate, size: size });") v8.eval("Discourse.Utilities.avatarImg({ avatarTemplate: avatarTemplate, size: size });")