diff --git a/app/js/tl/parse.js b/app/js/tl/parse.js
index 0d871a69..511d7b89 100644
--- a/app/js/tl/parse.js
+++ b/app/js/tl/parse.js
@@ -217,8 +217,13 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
Object.keys(toot.account.emojis).forEach(function(key5) {
var emoji = toot.account.emojis[key5]
var shortcode = emoji.shortcode
+ if (gif == 'yes') {
+ var emoSource = emoji.url
+ } else {
+ var emoSource = emoji.static_url
+ }
var emoji_url = `
-
`
var regExp = new RegExp(':' + shortcode + ':', 'g')
@@ -227,7 +232,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
}
var noticeavatar = ''
if (mix == 'notf') {
- if(!toot.status) {
+ if (!toot.status) {
toot.status = statusModel(toot.created_at)
}
if (gif == 'yes') {
@@ -367,9 +372,15 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
Object.keys(toot.account.emojis).forEach(function(key5) {
var emoji = toot.account.emojis[key5]
var shortcode = emoji.shortcode
+ if (gif == 'yes') {
+ var emoSource = emoji.url
+ } else {
+ var emoSource = emoji.static_url
+ }
var emoji_url = `
- `
+
+ `
var regExp = new RegExp(':' + shortcode + ':', 'g')
dis_name = dis_name.replace(regExp, emoji_url)
})
@@ -418,9 +429,15 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
Object.keys(toot.account.emojis).forEach(function(key5) {
var emoji = toot.account.emojis[key5]
var shortcode = emoji.shortcode
+ if (gif == 'yes') {
+ var emoSource = emoji.url
+ } else {
+ var emoSource = emoji.static_url
+ }
var emoji_url = `
- `
+
+ `
var regExp = new RegExp(':' + shortcode + ':', 'g')
dis_name = dis_name.replace(regExp, emoji_url)
})
@@ -571,7 +588,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
//Poll
var poll = ''
if (toot.poll) {
- var poll = pollParse(toot.poll, acct_id)
+ var poll = pollParse(toot.poll, acct_id, false)
}
var mediack = toot.media_attachments[0]
@@ -831,9 +848,15 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
Object.keys(toot.emojis).forEach(function(key5) {
var emoji = toot.emojis[key5]
var shortcode = emoji.shortcode
+ if (gif == 'yes') {
+ var emoSource = emoji.url
+ } else {
+ var emoSource = emoji.static_url
+ }
var emoji_url = `
- `
+
+ `
var regExp = new RegExp(':' + shortcode + ':', 'g')
content = content.replace(regExp, emoji_url)
spoil = spoil.replace(regExp, emoji_url)
@@ -1098,9 +1121,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
-