tangled
alpha
login
or
join now
grain.social
/
grain
38
fork
atom
grain.social is a photo sharing platform built on atproto.
38
fork
atom
overview
issues
2
pulls
pipelines
fix: display correct comment author in reply dialog
chadtmiller.com
8 months ago
70be72c8
4481da64
+8
-3
1 changed file
expand all
collapse all
unified
split
src
modules
comments.tsx
+8
-3
src/modules/comments.tsx
···
30
30
photo?: PhotoView;
31
31
comment?: CommentView;
32
32
}>) {
33
33
+
console.log({ userProfile, gallery, photo, comment });
33
34
const galleryRkey = gallery ? new AtUri(gallery.uri).rkey : undefined;
34
35
const profile = gallery?.creator;
35
36
return (
···
46
47
? <ActorAvatar profile={comment.author} size={42} />
47
48
: null}
48
49
<div class="flex flex-col gap-2">
49
49
-
{profile
50
50
-
? <div class="font-semibold">{profile.displayName}</div>
51
51
-
: null}
50
50
+
{comment && comment.author
51
51
+
? <div class="font-semibold">{comment.author.displayName}</div>
52
52
+
: (
53
53
+
<div class="font-semibold">
54
54
+
{gallery?.creator.displayName}
55
55
+
</div>
56
56
+
)}
52
57
{comment && comment.text}
53
58
{!comment && !photo && gallery &&
54
59
(gallery.record as Gallery).title}