Skip to content

Commit 33d4416

Browse files
committed
fix private article could be seen by id
bugfix fix private article could be seen by id Signed-off-by: panyunyi97 <cuferpan@gmail.com>
1 parent 4b251f3 commit 33d4416

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/controllers/article.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@ class ArticleController {
105105
reply.user.github = JSON.parse(reply.user.github)
106106
})
107107
})
108-
ctx.body = data
108+
if(data.type){
109+
ctx.body = data
110+
}else{
111+
ctx.body = null
112+
}
109113
}
110114
}
111115

0 commit comments

Comments
 (0)