🐛 Fix publisher avatar fallback didn't apply on featured replies

This commit is contained in:
2025-12-24 00:50:59 +08:00
parent 0948810993
commit 2a94ed5171
2 changed files with 7 additions and 2 deletions

View File

@@ -75,6 +75,7 @@ class PostRepliesList extends HookConsumerWidget {
isShowReference: false,
isEmbedOpenable: true,
onOpen: onOpen,
onUpdate: (newPost) {},
),
);

View File

@@ -139,7 +139,9 @@ class PostReplyPreview extends HookConsumerWidget {
spacing: 8,
children: [
ProfilePictureWidget(
file: post.publisher.picture,
file:
post.publisher.picture ??
post.publisher.account?.profile.picture,
radius: 12,
).padding(top: 4),
if (post.content?.isNotEmpty ?? false)
@@ -218,7 +220,9 @@ class PostReplyPreview extends HookConsumerWidget {
spacing: 8,
children: [
ProfilePictureWidget(
file: data.value?.publisher.picture,
file:
data.value?.publisher.picture ??
data.value?.publisher.account?.profile.picture,
radius: 12,
).padding(top: 4),
if (data.value?.content?.isNotEmpty ?? false)