This commit is contained in:
syuilo 2025-02-21 21:05:45 +09:00
parent 8c20c79cde
commit 16b4563ade
3 changed files with 5 additions and 2 deletions

View File

@ -66,7 +66,7 @@ export class SystemAccountService {
return systemAccount.user as MiLocalUser; return systemAccount.user as MiLocalUser;
} else { } else {
const created = await this.createCorrespondingUser(type, { const created = await this.createCorrespondingUser(type, {
username: `system.${type}`, username: `system.${type}`, // NOTE: (できれば避けたいが)system.から始まるかどうかでシステムアカウントかどうかを判定している処理もあるので変えないように
name: this.meta.name, name: this.meta.name,
}); });
this.cache.set(type, created); this.cache.set(type, created);

View File

@ -22,7 +22,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</div> </div>
</div> </div>
<MkInfo v-if="['instance.actor', 'relay.actor'].includes(user.username)">{{ i18n.ts.isSystemAccount }}</MkInfo> <MkInfo v-if="user.host == null && user.username.startsWith('system.')">{{ i18n.ts.isSystemAccount }}</MkInfo>
<FormLink v-if="user.host" :to="`/instance-info/${user.host}`">{{ i18n.ts.instanceInfo }}</FormLink> <FormLink v-if="user.host" :to="`/instance-info/${user.host}`">{{ i18n.ts.instanceInfo }}</FormLink>

View File

@ -61,6 +61,9 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkA> </MkA>
</span> </span>
</div> </div>
<div v-if="user.host == null && user.username.startsWith('system.')" class="isSystemAccount">
<MkInfo>{{ i18n.ts.isSystemAccount }}</MkInfo>
</div>
<div v-if="iAmModerator" class="moderationNote"> <div v-if="iAmModerator" class="moderationNote">
<MkTextarea v-if="editModerationNote || (moderationNote != null && moderationNote !== '')" v-model="moderationNote" manualSave> <MkTextarea v-if="editModerationNote || (moderationNote != null && moderationNote !== '')" v-model="moderationNote" manualSave>
<template #label>{{ i18n.ts.moderationNote }}</template> <template #label>{{ i18n.ts.moderationNote }}</template>