diff --git a/client/components/social/FeedItemCard.tsx b/client/components/social/FeedItemCard.tsx
index 7b7ce8fc..a4a913b8 100644
--- a/client/components/social/FeedItemCard.tsx
+++ b/client/components/social/FeedItemCard.tsx
@@ -71,7 +71,11 @@ export function FeedItemCard({
if (!content) return;
setSubmittingComment(true);
try {
- const created = await communityService.addComment(item.id, user.id, content);
+ const created = await communityService.addComment(
+ item.id,
+ user.id,
+ content,
+ );
if (created) {
setComments((prev) => [...prev, created]);
setCommentText("");
@@ -219,23 +223,35 @@ export function FeedItemCard({
{loadingComments ? (
-
Loading comments…
+
+ Loading comments…
+
) : comments.length === 0 ? (
-
Be the first to comment.
+
+ Be the first to comment.
+
) : (
comments.map((c) => (
-
+
- {(c.user_profiles?.full_name || c.user_profiles?.username || "U")[0]?.toUpperCase() || "U"}
+ {(c.user_profiles?.full_name ||
+ c.user_profiles?.username ||
+ "U")[0]?.toUpperCase() || "U"}
- {c.user_profiles?.full_name || c.user_profiles?.username || "Member"}
+ {c.user_profiles?.full_name ||
+ c.user_profiles?.username ||
+ "Member"}
+
+
+ {c.content}
-
{c.content}
))
@@ -248,7 +264,10 @@ export function FeedItemCard({
onChange={(e) => setCommentText(e.target.value)}
className="min-h-[44px]"
/>
-
diff --git a/client/components/social/PostComposer.tsx b/client/components/social/PostComposer.tsx
index baf5290d..73ec38d0 100644
--- a/client/components/social/PostComposer.tsx
+++ b/client/components/social/PostComposer.tsx
@@ -112,10 +112,18 @@ export default function PostComposer({
? "New photo"
: "Update");
- const inlineTags = Array.from((text.match(/#[\p{L}0-9_]+/gu) || []).map((t) => t.replace(/^#/, "").toLowerCase()));
+ const inlineTags = Array.from(
+ (text.match(/#[\p{L}0-9_]+/gu) || []).map((t) =>
+ t.replace(/^#/, "").toLowerCase(),
+ ),
+ );
const baseTags = mediaType === "none" ? ["update"] : [mediaType, "feed"];
const combinedTags = Array.from(
- new Set([...baseTags, ...selectedTags.map((t) => t.toLowerCase()), ...inlineTags]).values(),
+ new Set([
+ ...baseTags,
+ ...selectedTags.map((t) => t.toLowerCase()),
+ ...inlineTags,
+ ]).values(),
);
await communityService.createPost({
diff --git a/client/pages/Feed.tsx b/client/pages/Feed.tsx
index 2982c6ca..158f32fc 100644
--- a/client/pages/Feed.tsx
+++ b/client/pages/Feed.tsx
@@ -245,7 +245,9 @@ export default function Feed() {
const handleComment = useCallback((postId: string) => {
setItems((prev) =>
- prev.map((it) => (it.id === postId ? { ...it, comments: it.comments + 1 } : it)),
+ prev.map((it) =>
+ it.id === postId ? { ...it, comments: it.comments + 1 } : it,
+ ),
);
}, []);
@@ -452,7 +454,9 @@ export default function Feed() {