summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/notes/clips.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-11-25 21:33:57 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-11-25 21:33:57 +0900
commite9a1e281b928329c2e006a6354fef8082a444539 (patch)
tree43e0f5faaa8366ba1721c650872e4309dba30f9f /src/server/api/endpoints/notes/clips.ts
parentnanka iroiro (#6853) (diff)
downloadsharkey-e9a1e281b928329c2e006a6354fef8082a444539.tar.gz
sharkey-e9a1e281b928329c2e006a6354fef8082a444539.tar.bz2
sharkey-e9a1e281b928329c2e006a6354fef8082a444539.zip
Fix #6854
Diffstat (limited to 'src/server/api/endpoints/notes/clips.ts')
-rw-r--r--src/server/api/endpoints/notes/clips.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/api/endpoints/notes/clips.ts b/src/server/api/endpoints/notes/clips.ts
index 6126f12c66..432dd8a467 100644
--- a/src/server/api/endpoints/notes/clips.ts
+++ b/src/server/api/endpoints/notes/clips.ts
@@ -48,6 +48,7 @@ export default define(meta, async (ps, me) => {
const clips = await Clips.find({
id: In(clipNotes.map(x => x.clipId)),
+ isPublic: true
});
return await Promise.all(clips.map(x => Clips.pack(x)));