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
64 stars 13 forks source link

Improve Suggestion: `PreviewCard` should be split into `PreviewCard` and `TrendsLink` #91

Closed SkywaveTM closed 1 year ago

SkywaveTM commented 1 year ago

1. What could be improved

Currenly, PreviewCard model is defined for GET /api/v1/trends/links, since it contains additional history attribute.

However, the original PreviewCard entity does not contains that attribute, which leads failure on parsing status.card with the current model.

2. Why should this be improved

PreviewCard model is not reusable and misleading.

3. Any risks?

4. More information