匿名ユーザーでapp/showをリクエストすると500を返すのを修正 Fix #6715 (#6716)

This commit is contained in:
MeiMei 2020-09-28 21:27:05 +09:00 committed by GitHub
parent c1f6d996f6
commit ea7504f564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ export const meta = {
}; };
export default define(meta, async (ps, user, token) => { export default define(meta, async (ps, user, token) => {
const isSecure = token == null; const isSecure = user != null && token == null;
// Lookup app // Lookup app
const ap = await Apps.findOne(ps.appId); const ap = await Apps.findOne(ps.appId);