g6.2
This commit is contained in:
1 parent
f5704e87df
commit
96594641dc
11 files changed
+143
-109
No files matched your search
+1
-8
@@ -349,14 +349,7 @@ function form1(string) {
|
||||
|
||||
|
||||
async function getUserData(couchDB) {
|
||||
let username = getURLArgsMap()["user"];
|
||||
if (!username) {
|
||||
if (debug && typeof (debug_username) == "string") {
|
||||
username = debug_username;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
let username = localStorage.getItem("user");
|
||||
const res = await couchDB.get("users");
|
||||
if (!res) return null;
|
||||
const data = res[username];
|
||||
|
||||
Reference in new issue
Block a user