fix test/e2e/blocks.ts
by adding a note visibility check on the backend
This commit is contained in:
parent
76b5ec5264
commit
bc1cd86b10
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue