Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/app/(app)/community/new/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ export default function CommunityNewPage() {
content: text.trim(),
mediaList: uploaded.map((m, i) => ({
url: m.url,
thumbnailUrl: m.thumbnailUrl,
mediaType: m.mediaType,
sortOrder: i,
placeId: mediaPlaces[i]?.placeId ?? null,
Expand Down
2 changes: 2 additions & 0 deletions src/lib/api/posts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ type FeedParams = {

type UploadedMedia = {
url: string;
/** 목록용 축소본. 서버가 만들지 못했으면 null 이고, 이때 화면은 원본을 쓴다 */
thumbnailUrl: string | null;
mediaType: "IMAGE" | "VIDEO";
};

Expand Down
2 changes: 2 additions & 0 deletions src/types/api/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export type PostAuthor = {

export type PostMedia = {
url: string;
/** 목록용 축소본. 없으면 화면이 url 을 쓴다 */
thumbnailUrl?: string | null;
mediaType: "IMAGE" | "VIDEO";
sortOrder: number;
placeId: number | null;
Expand Down
Loading