Fix: instance actor
This commit is contained in:
parent
7d02ef2b3e
commit
6e2e488565
|
@ -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")
|
||||
|
|
|
@ -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 {
|
||||
|
@ -1021,10 +1023,10 @@ function userparse(obj, auth, acct_id, tlid, popup) {
|
|||
acct_id + ');" user="' + toot.acct + '" class="udg">'
|
||||
}
|
||||
var latest = date(toot.last_status_at, "relative");
|
||||
if(toot.last_status_at){
|
||||
if (toot.last_status_at) {
|
||||
var latesthtml = '<div class="cbadge" style="width:100px;">Last: ' + latest +
|
||||
'</div>'
|
||||
}else{
|
||||
} else {
|
||||
var latesthtml = ""
|
||||
}
|
||||
templete = templete +
|
||||
|
@ -1047,7 +1049,7 @@ function userparse(obj, auth, acct_id, tlid, popup) {
|
|||
'</div>' +
|
||||
'</div>';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
return templete;
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user