匿名ユーザーで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

View file

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