tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
switch comment/quote count func names
awarm.space
4 months ago
5b221f31
3d1b1992
+2
-2
1 changed file
expand all
collapse all
unified
split
app
lish
[did]
[publication]
[rkey]
Interactions
Interactions.tsx
+2
-2
app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx
···
152
152
);
153
153
};
154
154
155
155
-
export function getCommentCount(document: PostPageData, pageId?: string) {
155
155
+
export function getQuoteCount(document: PostPageData, pageId?: string) {
156
156
if (!document) return;
157
157
158
158
if (pageId)
···
169
169
}).length;
170
170
}
171
171
172
172
-
export function getQuoteCount(document: PostPageData, pageId?: string) {
172
172
+
export function getCommentCount(document: PostPageData, pageId?: string) {
173
173
if (!document) return;
174
174
if (pageId)
175
175
return document.comments_on_documents.filter(