$1')
content=twemoji.parse(content);
}else{
content="";
}
-
+ //絵文字があれば
+ if (emojick) {
+ Object.keys(toot.emojis).forEach(function(key5) {
+ var emoji = toot.emojis[key5];
+ var shortcode = emoji.name;
+ var emoji_url = '';
+ var regExp = new RegExp(":" + shortcode + ":", "g");
+ content = content.replace(regExp, emoji_url);
+ spoil = spoil.replace(regExp, emoji_url);
+ });
+ }
if(dis_name){
dis_name=twemoji.parse(dis_name);
}else{
@@ -728,6 +756,11 @@ function misskeyParse(obj, mix, acct_id, tlid, popup, mutefilter) {
content='This post has no content. It may be media-only, private or deleted.';
}
var trans="";
+ if(toot.user.emojis){
+ var actemojick = toot.user.emojis[0];
+ }else{
+ var actemojick=false;
+ }
templete = templete + '
@@ -183,7 +183,7 @@
{{item.text.head}}
- {{item.text.desc}}
+
@@ -203,7 +203,7 @@
{{item.text.after}}
-
+
diff --git a/app/view/en/setting.vue.js b/app/view/en/setting.vue.js
index 04def4de..67154761 100644
--- a/app/view/en/setting.vue.js
+++ b/app/view/en/setting.vue.js
@@ -476,5 +476,16 @@ var postConstruction=[
}
]
}
+ },{
+ id:"zero",
+ storage:"emoji-zero-width",
+ checkbox:true,
+ setValue:"normal",
+ setValue:"no",
+ text:{
+ head:"Zero-width space when inserting emojis",
+ desc:"",
+ checkbox:yesno
+ }
}
]
\ No newline at end of file
diff --git a/app/view/ja/setting.html b/app/view/ja/setting.html
index 07430a7d..f432016d 100644
--- a/app/view/ja/setting.html
+++ b/app/view/ja/setting.html
@@ -44,7 +44,7 @@
フォント
@@ -153,7 +153,7 @@
{{item.text.head}}
- {{item.text.desc}}
+
@@ -170,7 +170,7 @@
{{item.text.after}}
-
+
@@ -183,7 +183,7 @@
{{item.text.head}}
- {{item.text.desc}}
+
@@ -203,7 +203,7 @@
{{item.text.after}}
-
+
diff --git a/app/view/ja/setting.vue.js b/app/view/ja/setting.vue.js
index c2a40931..071f0920 100644
--- a/app/view/ja/setting.vue.js
+++ b/app/view/ja/setting.vue.js
@@ -476,5 +476,16 @@ var postConstruction=[
}
]
}
+ },{
+ id:"zero",
+ storage:"emoji-zero-width",
+ checkbox:true,
+ setValue:"normal",
+ setValue:"no",
+ text:{
+ head:"絵文字にゼロ幅スペースを使う",
+ desc:"",
+ checkbox:yesno
+ }
}
]
\ No newline at end of file
diff --git a/app/view/make/language/setting.en.json b/app/view/make/language/setting.en.json
index 08cc2a60..e27e20c3 100644
--- a/app/view/make/language/setting.en.json
+++ b/app/view/make/language/setting.en.json
@@ -114,6 +114,7 @@
"secwarn":"Toot with other visibility setting",
"nothing":"Hidden",
"localonly":"Local Only",
+ "zeroWidthEmoji":"Zero-width space when inserting emojis",
"keysc":"Keyboard shortcut Preferences",
"iks":"Easy inserter",
"okswarn":"You can insert any letters and emojis with only 3 keys",
diff --git a/app/view/make/language/setting.ja.json b/app/view/make/language/setting.ja.json
index 4e0cc760..3c6396b6 100644
--- a/app/view/make/language/setting.ja.json
+++ b/app/view/make/language/setting.ja.json
@@ -114,6 +114,7 @@
"secwarn":"公開範囲の変更とトゥートを一発でできます。",
"nothing":"表示しない",
"localonly":"ローカル限定",
+ "zeroWidthEmoji":"絵文字にゼロ幅スペースを使う",
"keysc":"キーボードショートカットの設定",
"iks":"簡単文字入力",
"okswarn":"絵文字やタグ、>BTなどを登録しておくとすぐに入力できます。",
diff --git a/app/view/make/setting.sample.html b/app/view/make/setting.sample.html
index 038f7ab5..05d1fa29 100644
--- a/app/view/make/setting.sample.html
+++ b/app/view/make/setting.sample.html
@@ -44,7 +44,7 @@
@@font@@
@@ -153,7 +153,7 @@
{{item.text.head}}
- {{item.text.desc}}
+
@@ -170,7 +170,7 @@
{{item.text.after}}
-
+
@@ -183,7 +183,7 @@
{{item.text.head}}
- {{item.text.desc}}
+
@@ -203,7 +203,7 @@
{{item.text.after}}
-
+
diff --git a/app/view/make/setting.sample.js b/app/view/make/setting.sample.js
index 526862d0..fd4c0f0b 100644
--- a/app/view/make/setting.sample.js
+++ b/app/view/make/setting.sample.js
@@ -476,5 +476,16 @@ var postConstruction=[
}
]
}
+ },{
+ id:"zero",
+ storage:"emoji-zero-width",
+ checkbox:true,
+ setValue:"normal",
+ setValue:"no",
+ text:{
+ head:"@@zeroWidthEmoji@@",
+ desc:"",
+ checkbox:yesno
+ }
}
]
\ No newline at end of file
diff --git a/app/view/ps/setting.html b/app/view/ps/setting.html
index 720f2caf..10358369 100644
--- a/app/view/ps/setting.html
+++ b/app/view/ps/setting.html
@@ -44,7 +44,7 @@
crwdns544:0crwdne544:0
@@ -153,7 +153,7 @@
{{item.text.head}}
- {{item.text.desc}}
+
@@ -170,7 +170,7 @@
{{item.text.after}}
-
+
@@ -183,7 +183,7 @@
{{item.text.head}}
- {{item.text.desc}}
+
@@ -203,7 +203,7 @@
{{item.text.after}}
-
+
diff --git a/app/view/ps/setting.vue.js b/app/view/ps/setting.vue.js
index 38614609..bea8453f 100644
--- a/app/view/ps/setting.vue.js
+++ b/app/view/ps/setting.vue.js
@@ -476,5 +476,16 @@ var postConstruction=[
}
]
}
+ },{
+ id:"zero",
+ storage:"emoji-zero-width",
+ checkbox:true,
+ setValue:"normal",
+ setValue:"no",
+ text:{
+ head:"@@zeroWidthEmoji@@",
+ desc:"",
+ checkbox:yesno
+ }
}
]
\ No newline at end of file