-
+
- {{ props.user.name }}
+ {{ post.user.name }}
{{ displayTime() }}
- {{ props.description }}
+ {{ post.description }}
+
+
+
+
+ {{ dummy.comment_count }}
+
+
+
+ {{ dummy.retweet_count }}
+
+
+
+ {{ post.like_count }}
+
+
+
+
diff --git a/frontend/composables/post.ts b/frontend/composables/post.ts
index f70313a..bb22fe3 100644
--- a/frontend/composables/post.ts
+++ b/frontend/composables/post.ts
@@ -9,6 +9,7 @@ const PostValidator = z.object({
user: z.object({
name: z.string(),
}),
+ like_count: z.number(),
})
const newPostValidator = z.object({