cleanup(backend): refactor UtilityService (MisskeyIO#858)
This commit is contained in:
parent
cb73368c83
commit
ff195d4f8d
31 changed files with 106 additions and 126 deletions
|
@ -173,7 +173,7 @@ export class UserFollowingService implements OnModuleInit {
|
|||
followee.isLocked ||
|
||||
(followeeProfile.carefulBot && follower.isBot) ||
|
||||
(this.userEntityService.isLocalUser(follower) && this.userEntityService.isRemoteUser(followee) && process.env.FORCE_FOLLOW_REMOTE_USER_FOR_TESTING !== 'true') ||
|
||||
(this.userEntityService.isLocalUser(followee) && this.userEntityService.isRemoteUser(follower) && this.utilityService.isSilencedHost((await this.metaService.fetch()).silencedHosts, follower.host))
|
||||
(this.userEntityService.isLocalUser(followee) && this.userEntityService.isRemoteUser(follower) && this.utilityService.isItemListedIn(follower.host, (await this.metaService.fetch()).silencedHosts))
|
||||
) {
|
||||
let autoAccept = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue