🐛 Fix publisher avatar fallback didn't apply on featured replies
This commit is contained in:
@@ -75,6 +75,7 @@ class PostRepliesList extends HookConsumerWidget {
|
|||||||
isShowReference: false,
|
isShowReference: false,
|
||||||
isEmbedOpenable: true,
|
isEmbedOpenable: true,
|
||||||
onOpen: onOpen,
|
onOpen: onOpen,
|
||||||
|
onUpdate: (newPost) {},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -139,7 +139,9 @@ class PostReplyPreview extends HookConsumerWidget {
|
|||||||
spacing: 8,
|
spacing: 8,
|
||||||
children: [
|
children: [
|
||||||
ProfilePictureWidget(
|
ProfilePictureWidget(
|
||||||
file: post.publisher.picture,
|
file:
|
||||||
|
post.publisher.picture ??
|
||||||
|
post.publisher.account?.profile.picture,
|
||||||
radius: 12,
|
radius: 12,
|
||||||
).padding(top: 4),
|
).padding(top: 4),
|
||||||
if (post.content?.isNotEmpty ?? false)
|
if (post.content?.isNotEmpty ?? false)
|
||||||
@@ -218,7 +220,9 @@ class PostReplyPreview extends HookConsumerWidget {
|
|||||||
spacing: 8,
|
spacing: 8,
|
||||||
children: [
|
children: [
|
||||||
ProfilePictureWidget(
|
ProfilePictureWidget(
|
||||||
file: data.value?.publisher.picture,
|
file:
|
||||||
|
data.value?.publisher.picture ??
|
||||||
|
data.value?.publisher.account?.profile.picture,
|
||||||
radius: 12,
|
radius: 12,
|
||||||
).padding(top: 4),
|
).padding(top: 4),
|
||||||
if (data.value?.content?.isNotEmpty ?? false)
|
if (data.value?.content?.isNotEmpty ?? false)
|
||||||
|
|||||||
Reference in New Issue
Block a user