fix test/e2e/blocks.ts

by adding a note visibility check on the backend
This commit is contained in:
dakkar 2025-05-13 15:29:38 +01:00
parent 76b5ec5264
commit bc1cd86b10
2 changed files with 4 additions and 2 deletions

View file

@ -302,6 +302,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
throw new ApiError(meta.errors.noSuchRenoteTarget);
} else if (isRenote(renote) && !isQuote(renote)) {
throw new ApiError(meta.errors.cannotReRenote);
} else if (!await this.noteEntityService.isVisibleForMe(renote, me.id)) {
throw new ApiError(meta.errors.cannotRenoteDueToVisibility);
}
// Check blocking