Skip to content

Add some more OGP fields to GetSiteMedia / post/site_metadata Endpoint #5920

@MV-GH

Description

@MV-GH

Requirements

  • Is this a feature request? For questions or discussions use https://lemmy.ml/c/lemmy_support or the matrix chat.
  • Did you check to see if this issue already exists?
  • Is this only a feature request? Do not put multiple feature requests in one issue.
  • Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.
  • Do you agree to follow the rules in our Code of Conduct?

Is your proposal related to a problem?

Missing image/video dimensions from this endpoint

Describe the solution you'd like.

It would be nice if it also returned the image dimensions and the video dimensions (og:image:width, og:image:height, og:video:width, og:video:height)

Also nice if I would get video dimensions in post (Only really usefull for videohosts that dont put og:image:width but only og:video:width)

Describe alternatives you've considered.

  • Dont add it
  • rely on get dimensions from the image/video URL, dont know ahead thus can pop if not using fixed boundaries.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions