リモートユーザーはcanPublicNoteがfalseでもhomeにしないように

https://github.com/misskey-dev/misskey/issues/9534#issuecomment-1380645073
This commit is contained in:
tamaina 2023-01-12 16:53:55 +00:00
parent ba349fc62f
commit b2117ba3a1
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ export class NoteCreateService {
if (data.channel != null) data.visibleUsers = []; if (data.channel != null) data.visibleUsers = [];
if (data.channel != null) data.localOnly = true; if (data.channel != null) data.localOnly = true;
if (data.visibility === 'public' && data.channel == null) { if (data.visibility === 'public' && this.userEntityService.isLocalUser(user) && data.channel == null) {
if ((await this.roleService.getUserRoleOptions(user.id)).canPublicNote === false) { if ((await this.roleService.getUserRoleOptions(user.id)).canPublicNote === false) {
data.visibility = 'home'; data.visibility = 'home';
} }