This commit is contained in:
Inex Code 2022-04-21 06:41:08 +00:00
parent 7275e2e80e
commit ca6e8b28de
1 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,8 @@ Future<void> _postOnMastodon(reqJson) async {
final postText = reqJson['object']['text'] ?? '';
final attachments = reqJson['object']['attachments'];
final attachments = reqJson['object']['attachments'] ?? [];
final photos =
attachments.where((attachment) => attachment['type'] == 'photo');