Compare commits

..

1 Commits

Author SHA1 Message Date
鴇峰 朔華 5b7f8b3af1
Merge fd9b7edeff into 763c708253 2024-11-19 21:32:38 +09:00
2 changed files with 3 additions and 2 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 type { UserProfilesRepository, FollowingsRepository, ChannelFollowingsRepository, BlockingsRepository, NoteThreadMutingsRepository, MutingsRepository, RenoteMutingsRepository } from '@/models/_.js';
import { bindThis } from '@/decorators.js'; import { bindThis } from '@/decorators.js';
import { IdService } from '@/core/IdService.js'; import { IdService } from '@/core/IdService.js';
import { MiBlockingType } from '@/models/Blocking.js';
import type { SelectQueryBuilder } from 'typeorm'; import type { SelectQueryBuilder } from 'typeorm';
import {MiBlockingType} from "@/models/_.js";
@Injectable() @Injectable()
export class QueryService { export class QueryService {

View File

@ -215,6 +215,7 @@ export class UserBlockingService implements OnModuleInit {
return (await this.cacheService.userBlockingCache.fetch(blockerId)).has(blockeeId); return (await this.cacheService.userBlockingCache.fetch(blockerId)).has(blockeeId);
} }
@bindThis @bindThis
public async reactionBlock(blocker: MiUser, blockee: MiUser, silent = false) { public async reactionBlock(blocker: MiUser, blockee: MiUser, silent = false) {
const blocking = await this.blockingsRepository.findOneBy({ const blocking = await this.blockingsRepository.findOneBy({