diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-11-15 17:35:40 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-11-15 17:35:40 +0900 |
| commit | cd34ade6383201d41e9623652e4e10800a91f739 (patch) | |
| tree | 806c7248609179256845e4b3b733c24967734229 /src/server/api/endpoints/clips/show.ts | |
| parent | 12.57.2 (diff) | |
| download | sharkey-cd34ade6383201d41e9623652e4e10800a91f739.tar.gz sharkey-cd34ade6383201d41e9623652e4e10800a91f739.tar.bz2 sharkey-cd34ade6383201d41e9623652e4e10800a91f739.zip | |
非ログイン時にクリップを取得できない問題を修正
Diffstat (limited to 'src/server/api/endpoints/clips/show.ts')
| -rw-r--r-- | src/server/api/endpoints/clips/show.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/api/endpoints/clips/show.ts b/src/server/api/endpoints/clips/show.ts index 1d4947528a..dc730d64a3 100644 --- a/src/server/api/endpoints/clips/show.ts +++ b/src/server/api/endpoints/clips/show.ts @@ -7,7 +7,7 @@ import { Clips } from '../../../../models'; export const meta = { tags: ['clips', 'account'], - requireCredential: true as const, + requireCredential: false as const, kind: 'read:account', @@ -36,7 +36,7 @@ export default define(meta, async (ps, me) => { throw new ApiError(meta.errors.noSuchClip); } - if (!clip.isPublic && (clip.userId !== me.id)) { + if (!clip.isPublic && (me == null || (clip.userId !== me.id))) { throw new ApiError(meta.errors.noSuchClip); } |