diff --git a/src/components/common/PostCard.tsx b/src/components/common/PostCard.tsx
index 2d22aa4e..d8f2e2d2 100644
--- a/src/components/common/PostCard.tsx
+++ b/src/components/common/PostCard.tsx
@@ -272,11 +272,13 @@ const Card = ({
- ·
+ {!isShort && (
+ ·
+ )}
>
)}
{isShort && (
-
+
{!!post.stat?.likesCount && (
diff --git a/src/lib/expand-unit.ts b/src/lib/expand-unit.ts
index 6df786f8..d219a1ca 100644
--- a/src/lib/expand-unit.ts
+++ b/src/lib/expand-unit.ts
@@ -138,7 +138,11 @@ export const expandCrossbellNote = async ({
)
).json()
expandedNote.stat = stat
- } else if ((expandedNote as any)._count) {
+ }
+ if ((expandedNote as any)._count) {
+ if (!expandedNote.stat) {
+ expandedNote.stat = {}
+ }
expandedNote.stat.commentsCount = (expandedNote as any)._count.fromNotes
expandedNote.stat.likesCount = (expandedNote as any)._count.links
}
diff --git a/src/models/home.model.ts b/src/models/home.model.ts
index ff625a2c..fd53a78b 100644
--- a/src/models/home.model.ts
+++ b/src/models/home.model.ts
@@ -300,6 +300,10 @@ export async function getFeed({
${cursorQuery}
) {
${resultFields}
+ _count {
+ fromNotes
+ links
+ }
}
}
`,
@@ -315,6 +319,7 @@ export async function getFeed({
expandCrossbellNote({
note: page,
useScore: true,
+ useStat: true,
useHTML,
}),
),