1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-11-25 15:46:17 +09:00

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