This commit is contained in:
Inex Code 2022-04-21 06:41:08 +00:00
parent 7275e2e80e
commit ca6e8b28de

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');