diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2020-09-28 21:27:05 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-28 21:27:05 +0900 |
| commit | ea7504f564793ffc5a8c9b7be9ba074a89da9e9a (patch) | |
| tree | 4f526226f1b50d1fc210247022392580f4d97fde /src/server/api/endpoints | |
| parent | Fix: Channel 投稿を削除編集すると Channel 外に投稿されるの... (diff) | |
| download | sharkey-ea7504f564793ffc5a8c9b7be9ba074a89da9e9a.tar.gz sharkey-ea7504f564793ffc5a8c9b7be9ba074a89da9e9a.tar.bz2 sharkey-ea7504f564793ffc5a8c9b7be9ba074a89da9e9a.zip | |
匿名ユーザーでapp/showをリクエストすると500を返すのを修正 Fix #6715 (#6716)
Diffstat (limited to 'src/server/api/endpoints')
| -rw-r--r-- | src/server/api/endpoints/app/show.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/endpoints/app/show.ts b/src/server/api/endpoints/app/show.ts index e3f3a1eaa4..ca4f3549f5 100644 --- a/src/server/api/endpoints/app/show.ts +++ b/src/server/api/endpoints/app/show.ts @@ -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); |