Fix bug
This commit is contained in:
parent
7275e2e80e
commit
ca6e8b28de
|
@ -74,7 +74,8 @@ Future<void> _postOnMastodon(reqJson) async {
|
||||||
|
|
||||||
final postText = reqJson['object']['text'] ?? '';
|
final postText = reqJson['object']['text'] ?? '';
|
||||||
|
|
||||||
final attachments = reqJson['object']['attachments'];
|
final attachments = reqJson['object']['attachments'] ?? [];
|
||||||
|
|
||||||
final photos =
|
final photos =
|
||||||
attachments.where((attachment) => attachment['type'] == 'photo');
|
attachments.where((attachment) => attachment['type'] == 'photo');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue