Add: always sensitive on

This commit is contained in:
Cutls
2019-10-05 03:51:05 +09:00
parent cb6a75de3b
commit 90629aecb4
4 changed files with 17 additions and 1 deletions

View File

@@ -695,6 +695,11 @@ function refresh(target) {
localStorage.setItem("user_" + target, json["acct"]);
localStorage.setItem("user-id_" + target, json["id"]);
localStorage.setItem("prof_" + target, avatar);
if(json["source"]["sensitive"]){
localStorage.setItem("nsfw_" + target, "true");
}else{
localStorage.removeItem("nsfw_" + target);
}
obj[target] = ref;
var json = JSON.stringify(obj);
localStorage.setItem("multi", json);