Unverified Commit 9e4d7097 authored by Haelwenn's avatar Haelwenn

Worker.js: Fix custom emoji sizing+position

parent e6fd9649
......@@ -152,7 +152,9 @@ function addDataToModel(model, mode, items) {
}
model.sync()
} function parseAccounts(collection, prefix, data) {
}
function parseAccounts(collection, prefix, data) {
var res = collection;
res[prefix + 'account_id'] = data["id"]
......@@ -323,7 +325,8 @@ function addEmojis(item, data) {
emoji = data["emojis"][i];
item['content'] = item['content'].replaceAll(
":" + emoji.shortcode + ":",
"<img src=\"" + emoji.static_url + "\" align=\"middle\" width=\"24\" height=\"24\">")
"<img src=\"" + emoji.static_url +
"\" align=\"top\" width=\"2em\" height=\"2em\" alt=" + emoji.shortcode + ">")
//console.log(JSON.stringify(data["emojis"][i]))
}
if(data["reblog"])
......@@ -332,7 +335,8 @@ function addEmojis(item, data) {
emoji = data["reblog"]["emojis"][i];
item['content'] = item['content'].replaceAll(
":" + emoji.shortcode + ":",
"<img src=\"" + emoji.static_url + "\" align=\"middle\" width=\"24\" height=\"24\">")
"<img src=\"" + emoji.static_url +
"\" align=\"top\" width=\"2em\" height=\"2em\" alt=" + emoji.shortcode + ">")
}
return item;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment