emoji cache downloadd

This commit is contained in:
Yuxin Wu
2016-06-18 10:04:53 -07:00
parent 91ac3126f8
commit 1f2f7560bc
3 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ class HTMLRender(object):
elif msg.type == TYPE_CUSTOM_EMOJI:
pq = PyQuery(msg.content)
md5 = pq('emoticonmd5').text()
format_dict['img'] = self.res.get_emoji(md5, None)
format_dict['img'] = self.res.get_emoji_by_md5(md5)
return template.format(**format_dict)
elif msg.type == TYPE_LINK:
content = msg.msg_str()