core: use postinit status code

This commit is contained in:
2024-01-08 20:57:43 +01:00
parent 6f9903e309
commit 476ed0b833
12 changed files with 87 additions and 89 deletions

View File

@ -12,7 +12,7 @@ export default class extends AbstractView {
let profile = await client.profiles.getProfile(this.user_id);
if (profile === null)
return 1;
return 404;
this.profile = await client.profiles.getProfile(this.user_id);
this.info = document.getElementById("info");
@ -36,6 +36,9 @@ export default class extends AbstractView {
async blockButton() {
// Block option
if (await client.isAuthentificate() === false)
return;
if (client.me.user_id != this.user_id) {
let block = document.getElementById("block") || document.createElement("a");
block.id = "block";