LemmyNet / lemmy-js-client

A javascript / typescript http and websocket client and type system for Lemmy.
GNU Affero General Public License v3.0
135 stars 55 forks source link

Datatype OpenGraphData is exported but not used #259

Open MV-GH opened 4 months ago

MV-GH commented 4 months ago

This should be removed.

dessalines commented 4 months ago

Its harmless, and its auto-generated like this because in the back end we're using flatten so as not to have a breaking change. But it is its own distinct type.

pub struct LinkMetadata {
  #[serde(flatten)]
  pub opengraph_data: OpenGraphData,
  pub content_type: Option<String>,
}