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

This reverts commit b2117ba3a1.
This commit is contained in:
syuilo 2023-01-13 11:14:23 +09:00
parent 6458239a7c
commit 4e39e690b6
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.localOnly = true;
if (data.visibility === 'public' && this.userEntityService.isLocalUser(user) && data.channel == null) {
if (data.visibility === 'public' && data.channel == null) {
if ((await this.roleService.getUserRoleOptions(user.id)).canPublicNote === false) {
data.visibility = 'home';
}