+8
-3
src/modules/comments.tsx
+8
-3
src/modules/comments.tsx
···
30
photo?: PhotoView;
31
comment?: CommentView;
32
}>) {
33
const galleryRkey = gallery ? new AtUri(gallery.uri).rkey : undefined;
34
const profile = gallery?.creator;
35
return (
···
46
? <ActorAvatar profile={comment.author} size={42} />
47
: null}
48
<div class="flex flex-col gap-2">
49
-
{profile
50
-
? <div class="font-semibold">{profile.displayName}</div>
51
-
: null}
52
{comment && comment.text}
53
{!comment && !photo && gallery &&
54
(gallery.record as Gallery).title}
···
30
photo?: PhotoView;
31
comment?: CommentView;
32
}>) {
33
+
console.log({ userProfile, gallery, photo, comment });
34
const galleryRkey = gallery ? new AtUri(gallery.uri).rkey : undefined;
35
const profile = gallery?.creator;
36
return (
···
47
? <ActorAvatar profile={comment.author} size={42} />
48
: null}
49
<div class="flex flex-col gap-2">
50
+
{comment && comment.author
51
+
? <div class="font-semibold">{comment.author.displayName}</div>
52
+
: (
53
+
<div class="font-semibold">
54
+
{gallery?.creator.displayName}
55
+
</div>
56
+
)}
57
{comment && comment.text}
58
{!comment && !photo && gallery &&
59
(gallery.record as Gallery).title}