mastodon-dart / mastodon-api

This library provides the easiest and powerful Dart/Flutter library for Mastodon API 🎯
http://pub.dev/packages/mastodon_api
BSD 3-Clause "New" or "Revised" License
63 stars 13 forks source link

fix media preview_url nullable type #150

Closed Kraigo closed 1 year ago

Kraigo commented 1 year ago

1. Description

Some media type may have nullable preview_url property, which didn't reflect in documentation. You change check it with provided media id

https://mstdn.social/api/v1/media/110023777570725915

Screenshot 2023-03-15 at 21 53 46

1.1. Checklist

1.2. Breaking Change

1.3. Related Issues

codecov-commenter commented 1 year ago

Codecov Report

Merging #150 (2176b72) into main (6d5db71) will not change coverage. The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##             main     #150   +/-   ##
=======================================
  Coverage   75.83%   75.83%           
=======================================
  Files         115      115           
  Lines        1254     1254           
=======================================
  Hits          951      951           
  Misses        303      303           
Impacted Files Coverage Δ
lib/src/service/entities/media_attachment.dart 100.00% <ø> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

myConsciousness commented 1 year ago

Hi @Kraigo ,

Thanks for your contribution!:)