Compare commits

..

2 Commits

Author SHA1 Message Date
鴇峰 朔華 65fed2fb5e
Merge 6236c936f1 into 763c708253 2024-11-20 01:00:09 +00:00
鴇峰 朔華 6236c936f1 fix: code style の修正 2024-11-19 11:16:14 +09:00
2 changed files with 2 additions and 3 deletions

View File

@ -10,8 +10,8 @@ import type { MiUser } from '@/models/User.js';
import type { UserProfilesRepository, FollowingsRepository, ChannelFollowingsRepository, BlockingsRepository, NoteThreadMutingsRepository, MutingsRepository, RenoteMutingsRepository } from '@/models/_.js';
import { bindThis } from '@/decorators.js';
import { IdService } from '@/core/IdService.js';
import { MiBlockingType } from '@/models/Blocking.js';
import type { SelectQueryBuilder } from 'typeorm';
import {MiBlockingType} from "@/models/_.js";
@Injectable()
export class QueryService {

View File

@ -214,8 +214,7 @@ export class UserBlockingService implements OnModuleInit {
public async checkBlocked(blockerId: MiUser['id'], blockeeId: MiUser['id']): Promise<boolean> {
return (await this.cacheService.userBlockingCache.fetch(blockerId)).has(blockeeId);
}
@bindThis
public async reactionBlock(blocker: MiUser, blockee: MiUser, silent = false) {
const blocking = await this.blockingsRepository.findOneBy({