🐛 Fix remain bugs

This commit is contained in:
2025-04-01 22:36:06 +08:00
parent 1ad42e6505
commit 00863b94e8
3 changed files with 5 additions and 13 deletions

View File

@ -255,8 +255,9 @@ class PostWriteController extends ChangeNotifier {
List.from(post.categories.map((ele) => ele.alias), growable: true);
attachments.addAll(
post.body['attachments']
?.where((ele) => SnAttachment.fromJson(ele))
?.map(PostWriteMedia) ??
?.map((ele) => SnAttachment.fromJson(ele))
?.map((ele) => PostWriteMedia(ele))
?.cast<PostWriteMedia>() ??
[],
);
poll = post.poll;