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
styles on quote drawer content
awarm.space
4 months ago
5ed5328f
a86ebb9b
+6
-5
1 changed file
expand all
collapse all
unified
split
app
lish
[did]
[publication]
[rkey]
Interactions
Quotes.tsx
+6
-5
app/lish/[did]/[publication]/[rkey]/Interactions/Quotes.tsx
···
48
48
}
49
49
50
50
// Prefetch quotes data
51
51
-
export function prefetchQuotesData(quotesAndMentions: { uri: string; link?: string }[]) {
51
51
+
export function prefetchQuotesData(
52
52
+
quotesAndMentions: { uri: string; link?: string }[],
53
53
+
) {
52
54
const uris = quotesAndMentions.map((q) => q.uri);
53
55
const key = getQuotesSWRKey(uris);
54
56
if (key) {
···
69
71
// Fetch Bluesky post data for all URIs
70
72
const uris = props.quotesAndMentions.map((q) => q.uri);
71
73
const key = getQuotesSWRKey(uris);
72
72
-
const { data: bskyPosts, isLoading } = useSWR(
73
73
-
key,
74
74
-
() => fetchBskyPosts(uris),
74
74
+
const { data: bskyPosts, isLoading } = useSWR(key, () =>
75
75
+
fetchBskyPosts(uris),
75
76
);
76
77
77
78
// Separate quotes with links (quoted content) from direct mentions
···
141
142
{/* Direct post mentions (without quoted content) */}
142
143
{directMentions.length > 0 && (
143
144
<div className="flex flex-col gap-4">
144
144
-
<h3>Post Mentions</h3>
145
145
+
<div className="text-secondary font-bold">Post Mentions</div>
145
146
<div className="flex flex-col gap-8">
146
147
{directMentions.map((q, index) => {
147
148
const pv = postViewMap.get(q.uri);