Skip to content

Commit

Permalink
πŸš‘ 자기 μžμ‹  블락 방지 μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
yunochi committed Dec 26, 2024
1 parent f10afb2 commit 5b16a9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/api/_service/blocking/blocking-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ export class BlockingService {
if (q.questioneeHandle !== tokenBody?.handle) {
return sendApiError(403, 'Not your question!');
}
if (q.questioneeHandle === tokenBody.handle) {
return sendApiError(400, '자기 μžμ‹ μ„ 블락할 수 μ—†μ–΄μš”!');
}
if (q.questioner) {
if (q.questioner === tokenBody.handle) {
return sendApiError(400, '자기 μžμ‹ μ„ 블락할 수 μ—†μ–΄μš”!');
}
const b = await this.createBlock(q.questioner, tokenBody.handle, false, q.isAnonymous);
this.logger.debug(`New Block created by Question ${q.id}, hidden: ${b.hidden}, target: ${b.blockeeTarget}`);
return NextResponse.json(`OK. block created!`, { status: 201 });
Expand Down

0 comments on commit 5b16a9f

Please sign in to comment.