';
}
var tagck = toot.tags[0];
var tags = "";
//タグであれば
if (tagck) {
Object.keys(toot.tags).forEach(function(key4) {
var tag = toot.tags[key4];
var tags = '#' + tag + '#' + tag + ':TLToot '+
'Pin ';
content=content.replace("#"+tag,tags);
});
//tags = '
' + tags + '
';
}
//公開範囲を取得
var vis = "";
var visen = toot.visibility;
if (visen == "public") {
var vis =
'public';
var can_rt = "";
} else if (visen == "home") {
var vis =
'lock_open';
var can_rt = "";
} else if (visen == "followers") {
var vis =
'people';
var can_rt = "";
} else if (visen == "private") {
var vis =
'lock';
var can_rt = "";
} else if (visen == "specified") {
var vis =
'mail';
var can_rt = "hide";
}
if (toot.user.username == localStorage.getItem("user_" + acct_id)) {
var if_mine = "";
var mine_via="type-b";
} else {
var if_mine = "hide";
var mine_via="";
}
if (toot.myReaction) {
var if_fav = " yellow-text";
var fav_app = "faved";
} else {
var if_fav = "";
var fav_app = "";
}
var if_rt = "";
var rt_app = "";
/*
if (toot.reblogged) {
var if_rt = "teal-text";
var rt_app = "rted";
} else {
var if_rt = "";
var rt_app = "";
}
*/
//アバター
var avatar = toot.user.avatarUrl;
//ワードミュート
if(wordmute){
Object.keys(wordmute).forEach(function(key8) {
var worde = wordmute[key8];
if(worde){
if(worde.tag){
var word=worde.tag;
}else{
var word=worde
}
var regExp = new RegExp( word, "g" ) ;
if($.strip_tagstemp(content).match(regExp)){
boostback = "hide by_filter";
}
}
});
}
//ワード強調
if(wordemp){
Object.keys(wordemp).forEach(function(key9) {
var word = wordemp[key9];
if(word){
var word=word.tag;
var regExp = new RegExp( word, "g" ) ;
content=content.replace(regExp,''+word+"");
}
});
}
//Ticker
var tickerdom="";
if(ticker){
var tickerdata=JSON.parse(localStorage.getItem("ticker"));
var thisdomain=toot.user.username.split("@");
if(thisdomain.length>1){
thisdomain=thisdomain[1];
}
for( var i=0; i '+value.name+'';
break;
}
}
}
//Poll
var poll="";
if(toot.poll){
var choices=toot.poll.choices;
Object.keys(choices).forEach(function(keyc) {
var choice = choices[keyc];
if(choice.isVoted){
var myvote=twemoji.parse("✅");
}else{
var myvote="";
}
poll=poll+'
'+choice.text+'('+choice.votes+''+myvote+')
';
});
poll='
'+poll+'
';
}
//Reactions
if(toot.reactionCounts){
if(toot.reactionCounts.like){
var like=toot.reactionCounts.like;
var likehide="";
}else{
var like=0;
var likehide="hide";
}
if(toot.reactionCounts.love){
var love=toot.reactionCounts.love;
var lovehide="";
}else{
var love=0;
var lovehide="hide";
}
if(toot.reactionCounts.laugh){
var laugh=toot.reactionCounts.laugh;
var laughhide="";
}else{
var laugh=0;
var laughhide="hide";
}
if(toot.reactionCounts.hmm){
var hmm=toot.reactionCounts.hmm;
var hmmhide="";
}else{
var hmm=0;
var hmmhide="hide";
}
if(toot.reactionCounts.surprise){
var surprise=toot.reactionCounts.surprise;
var suphide="";
}else{
var suphide="hide";
var surprise=0;
}
if(toot.reactionCounts.congrats){
var congrats=toot.reactionCounts.congrats;
var conghide="";
}else{
var congrats=0;
var conghide="hide";
}
if(toot.reactionCounts.angry){
var angry=toot.reactionCounts.angry;
var anghide="";
}else{
var angry=0;
var anghide="hide";
}
if(toot.reactionCounts.confused){
var confhide="";
var confused=toot.reactionCounts.confused;
}else{
var confused=0;
var confhide="hide";
}
if(toot.reactionCounts.pudding){
var pudding=toot.reactionCounts.pudding;
var pudhide="";
}else{
var pudding=0;
var pudhide="hide";
}
var fullhide="";
}else{
var like=0;var love=0;var laugh=0;var hmm=0;var surprise=0;var congrats=0;var angry=0;var confused=0;var pudding=0;
var likehide="hide";var lovehide="hide";var laughhide="hide";var hmmhide="hide";var suphide="hide";var conghide="hide";var anghide="hide";var confhide="hide";var pudhide="hide";
var fullhide="hide";
}
if(toot.myReaction){
var reacted=toot.myReaction;
}else{
var reacted="";
}
content=nl2br(content);
if(!content || content==""){
content='This post has no content. It may be media-only, private or deleted.';
}
var trans="";
templete = templete + '