1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-24 23:26:35 +09:00

リモートユーザーは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

View File

@ -225,7 +225,7 @@ export class NoteCreateService {
if (data.channel != null) data.visibleUsers = [];
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) {
data.visibility = 'home';
}