tangled
alpha
login
or
join now
whey.party
/
red-dwarf
82
fork
atom
an independent Bluesky client using Constellation, PDS Queries, and other services
reddwarf.app
frontend
spa
bluesky
reddwarf
microcosm
client
app
82
fork
atom
overview
issues
25
pulls
pipelines
feed fixes
rimar1337
4 months ago
1751dc48
ca2ab70a
+10
-4
3 changed files
expand all
collapse all
unified
split
src
components
UniversalPostRenderer.tsx
routes
profile.$did
feed.$rkey.tsx
index.tsx
+2
-2
src/components/UniversalPostRenderer.tsx
···
2206
// </div>
2207
// )
2208
} else if (!!reallybaduri && !!reallybadaturi && reallybadaturi.collection === "app.bsky.graph.list") {
2209
-
return <div className="rounded-xl border"><FeedItemRenderAturiLoader aturi={reallybaduri} disableBottomBorder listmode /></div>
2210
}
2211
2212
// starter pack embed
···
2219
// </div>
2220
// )
2221
} else if (!!reallybaduri && !!reallybadaturi && reallybadaturi.collection === "app.bsky.graph.starterpack") {
2222
-
return <div className="rounded-xl border"><FeedItemRenderAturiLoader aturi={reallybaduri} disableBottomBorder listmode /></div>
2223
}
2224
2225
// quote post
···
2206
// </div>
2207
// )
2208
} else if (!!reallybaduri && !!reallybadaturi && reallybadaturi.collection === "app.bsky.graph.list") {
2209
+
return <div className="rounded-xl border"><FeedItemRenderAturiLoader aturi={reallybaduri} disableBottomBorder listmode disablePropagation /></div>
2210
}
2211
2212
// starter pack embed
···
2219
// </div>
2220
// )
2221
} else if (!!reallybaduri && !!reallybadaturi && reallybadaturi.collection === "app.bsky.graph.starterpack") {
2222
+
return <div className="rounded-xl border"><FeedItemRenderAturiLoader aturi={reallybaduri} disableBottomBorder listmode disablePropagation /></div>
2223
}
2224
2225
// quote post
+2
-2
src/routes/profile.$did/feed.$rkey.tsx
···
79
feedUri={uri}
80
pdsUrl={identity?.pds}
81
feedServiceDid={feedServiceDid}
82
-
authedOverride={true}
83
-
unauthedfeedurl={web}
84
/>
85
) : (
86
<div className="p-4 text-center text-gray-500">Loading.......</div>
···
79
feedUri={uri}
80
pdsUrl={identity?.pds}
81
feedServiceDid={feedServiceDid}
82
+
authedOverride={!authed && true || undefined}
83
+
unauthedfeedurl={!authed && web || undefined}
84
/>
85
) : (
86
<div className="p-4 text-center text-gray-500">Loading.......</div>
+6
src/routes/profile.$did/index.tsx
···
408
aturi,
409
listmode,
410
disableBottomBorder,
0
411
}: {
412
aturi: string;
413
listmode?: boolean;
414
disableBottomBorder?: boolean;
0
415
}) {
416
const { data: record } = useQueryArbitrary(aturi);
417
···
421
listmode={listmode}
422
feed={record}
423
disableBottomBorder={disableBottomBorder}
0
424
/>
425
);
426
}
···
429
feed,
430
listmode,
431
disableBottomBorder,
0
432
}: {
433
feed: { uri: string; cid: string; value: any };
434
listmode?: boolean;
435
disableBottomBorder?: boolean;
0
436
}) {
437
const name = listmode
438
? (feed.value?.name as string)
···
465
className={`px-4 py-4 ${!disableBottomBorder && "border-b"} flex flex-col gap-1`}
466
to="/profile/$did/feed/$rkey"
467
params={{ did: aturi.host, rkey: aturi.rkey }}
0
468
>
469
<div className="flex flex-row gap-3">
470
<div className="min-w-10 min-h-10">
···
408
aturi,
409
listmode,
410
disableBottomBorder,
411
+
disablePropagation,
412
}: {
413
aturi: string;
414
listmode?: boolean;
415
disableBottomBorder?: boolean;
416
+
disablePropagation?: boolean;
417
}) {
418
const { data: record } = useQueryArbitrary(aturi);
419
···
423
listmode={listmode}
424
feed={record}
425
disableBottomBorder={disableBottomBorder}
426
+
disablePropagation={disablePropagation}
427
/>
428
);
429
}
···
432
feed,
433
listmode,
434
disableBottomBorder,
435
+
disablePropagation,
436
}: {
437
feed: { uri: string; cid: string; value: any };
438
listmode?: boolean;
439
disableBottomBorder?: boolean;
440
+
disablePropagation?: boolean;
441
}) {
442
const name = listmode
443
? (feed.value?.name as string)
···
470
className={`px-4 py-4 ${!disableBottomBorder && "border-b"} flex flex-col gap-1`}
471
to="/profile/$did/feed/$rkey"
472
params={{ did: aturi.host, rkey: aturi.rkey }}
473
+
onClick={(e)=>{e.stopPropagation();}}
474
>
475
<div className="flex flex-row gap-3">
476
<div className="min-w-10 min-h-10">