Skip to content

Commit 080116e

Browse files
committed
feat: expose cover video
1 parent 905a90f commit 080116e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/entity/posts/Post.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,13 @@ export type PostFlags = Partial<{
4343
promoteToPublic: number | null;
4444
deletedBy: string;
4545
vordr: boolean;
46+
coverVideo: string;
4647
}>;
4748

48-
export type PostFlagsPublic = Pick<PostFlags, 'private' | 'promoteToPublic'>;
49+
export type PostFlagsPublic = Pick<
50+
PostFlags,
51+
'private' | 'promoteToPublic' | 'coverVideo'
52+
>;
4953

5054
export type PostContentQuality = Partial<{
5155
is_ai_probability: number;

src/schema/posts.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,11 @@ export const typeDefs = /* GraphQL */ `
360360
The unix timestamp (seconds) the post will be promoted to public to
361361
"""
362362
promoteToPublic: Int @auth(requires: [MODERATOR])
363+
364+
"""
365+
Cover video
366+
"""
367+
coverVideo: String
363368
}
364369
365370
type UserPostFlagsPublic {

0 commit comments

Comments
 (0)