From 1b96b423563994af618ab4b7e6086e52a19391db Mon Sep 17 00:00:00 2001 From: cutls Date: Fri, 14 Sep 2018 01:40:51 +0900 Subject: [PATCH] tag bag/link to acct on users data. --- app/css/userdata.css | 4 ++++ app/js/tl/tag.js | 6 +++--- app/js/userdata/showOnTL.js | 5 +++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/app/css/userdata.css b/app/css/userdata.css index 56913f9f..919821ce 100644 --- a/app/css/userdata.css +++ b/app/css/userdata.css @@ -84,4 +84,8 @@ } .custom-tabs .custom-tab a{ padding: 8px 12px; +} +#his-des .mention{ + color: #039be5; + cursor: pointer; } \ No newline at end of file diff --git a/app/js/tl/tag.js b/app/js/tl/tag.js index a98f962a..9d54ac17 100644 --- a/app/js/tl/tag.js +++ b/app/js/tl/tag.js @@ -56,8 +56,8 @@ function favTag(){ var tags=""; Object.keys(obj).forEach(function(key) { var tag = obj[key]; - tags = tags + '#' + tag + ' TL Toot '+ - ''+lang_tags_realtime[lang]+' '+lang_del[lang]+' '; + tags = tags + '#' + tag + ' TL Toot '+ + ''+lang_tags_realtime[lang]+' '+lang_del[lang]+' '; }); if(obj.length>0){ $("#taglist").append("My Tags:" + tags); @@ -107,5 +107,5 @@ function tagTL(a,b,c,d){ } function autoToot(tag){ localStorage.setItem("stable",tag); - Materialize.toast(lang_tags_tagwarn[lang].replace("{{tag}}" ,'#'+tag.name),3000); + Materialize.toast(lang_tags_tagwarn[lang].replace("{{tag}}" ,tag).replace("{{tag}}" ,tag),3000); } \ No newline at end of file diff --git a/app/js/userdata/showOnTL.js b/app/js/userdata/showOnTL.js index dadfa3b0..d4044a47 100644 --- a/app/js/userdata/showOnTL.js +++ b/app/js/userdata/showOnTL.js @@ -105,6 +105,7 @@ function udg(user, acct_id) { fer(json.id, '', acct_id); var dis_name=escapeHTML(json.display_name); dis_name=twemoji.parse(dis_name); + var note=json.note; if(json.emojis){ var actemojick = json.emojis[0]; }else{ @@ -119,6 +120,7 @@ function udg(user, acct_id) { '" class="emoji-img" data-emoji="'+shortcode+'">'; var regExp = new RegExp(":" + shortcode + ":", "g"); dis_name = dis_name.replace(regExp, emoji_url); + note = note.replace(regExp, emoji_url); }); } $("#his-name").html(dis_name); @@ -131,10 +133,9 @@ function udg(user, acct_id) { $("#his-follower").text(json.followers_count); $("#his-since").text(crat(json.created_at)); $("#his-openin").attr("data-href", json.url); - var note=json.note; if(json.fields){ if(json.fields.length>0){ - var note=json.note+'' + note=note+'
' for(var i=0;i