Skip to content

Commit 23bc2af

Browse files
committed
fix: should check authorID as user instead of subject
1 parent daec808 commit 23bc2af

File tree

1 file changed

+1
-1
lines changed
  • routes/private/routes/wiki/subject

1 file changed

+1
-1
lines changed

routes/private/routes/wiki/subject/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ export async function setup(app: App) {
582582
}
583583

584584
if (authorID) {
585-
if (!(await orm.fetchSubjectByID(authorID))) {
585+
if (!(await fetcher.fetchSlimUserByID(authorID))) {
586586
throw new BadRequestError(`user ${authorID} does not exists`);
587587
}
588588
finalAuthorID = authorID;

0 commit comments

Comments
 (0)