🐛 Bug fixes for previous changes

This commit is contained in:
2024-12-07 22:27:07 +08:00
parent 2a837227d5
commit c55db308a1
2 changed files with 27 additions and 20 deletions

View File

@ -206,7 +206,7 @@ class PostWriteController extends ChangeNotifier {
tags = List.from(post.tags.map((ele) => ele.alias));
attachments.addAll(post.preload?.attachments?.map((ele) => PostWriteMedia(ele)) ?? []);
if (post.preload?.thumbnail != null) {
if (post.preload?.thumbnail != null && (post.preload?.thumbnail?.rid.isNotEmpty ?? false)) {
thumbnail = PostWriteMedia(post.preload!.thumbnail);
}