Fix: instance actor

This commit is contained in:
Cutls 2019-09-01 00:02:34 +09:00
parent 7d02ef2b3e
commit 6e2e488565
4 changed files with 123 additions and 115 deletions

View File

@ -162,9 +162,12 @@ input.addEventListener("focus", function () {
Object.keys(json.accounts).forEach(function (key3) {
var acct = json.accounts[key3];
if (acct.acct != q) {
//Instance Actorって…
if (acct.username.indexOf(".") < 0) {
accts = accts + '<a onclick="tagInsert(\'@' + acct.acct +
'\',\'@' + q + '\')" class="pointer">@' + acct.acct + '</a><br>';
}
}
});
$("#right-side").show()
$("#right-side").css("width", "200px")

View File

@ -930,6 +930,8 @@ function userparse(obj, auth, acct_id, tlid, popup) {
} else {
var notf = false;
}
//Instance Actorって…
if (toot.username.indexOf(".") < 0) {
if (toot.locked) {
var locked = ' <i class="fas fa-lock red-text"></i>';
} else {
@ -1047,7 +1049,7 @@ function userparse(obj, auth, acct_id, tlid, popup) {
'</div>' +
'</div>';
}
}
});
return templete;

View File

@ -75,7 +75,6 @@ function src(mode, offset) {
//アカウント
if (json.accounts[0]) {
var templete = userparse(json.accounts, '', acct_id);
console.log(templete)
if(!offset){
$("#src-contents").append("<br>Accounts<div id=\"src-accts\">" + templete + '</div><a onclick="src(false,\'more\')" class="pointer">more...</a>');
}else{

View File

@ -19,6 +19,10 @@ const pages = ["acct.html", "index.html", "setting.html", "update.html", "settin
let langstr = ""
for (let n = 0; n < langs.length; n++) {
let lang = langs[n]
let targetDir = '../' + lang
if (!fs.existsSync(targetDir)) {
fs.mkdirSync(targetDir);
}
langstr = langstr + '<a onclick="changelang(\'' + lang + '\')" class="pointer" style="margin-right:5px;">' + langsh[n] + '</a>'
}
for (let i = 0; i < samples.length; i++) {