Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide more info about the author from the API #6

Open
marekbrze opened this issue Jan 26, 2022 · 0 comments
Open

Provide more info about the author from the API #6

marekbrze opened this issue Jan 26, 2022 · 0 comments

Comments

@marekbrze
Copy link

Current state:
Currently there is only possibility to get creditLine and source.url from the sanity.mageAsset object if you want to give attribution to the author of the photo. creditLine doesn't follow the format proposed by Unsplash -> Photo by Andres Molina** on Unsplash. It says [user] by Unsplash. Also it's not language agnostic.

Proposed state
Add following fields from the Unsplash API to the sanity.imageAsset:

  • user.name <- full user name
  • user.username <- username if you want to display it as @johnsmith
  • user.links.html <- link to the profile

This will provide many possibilities to display attribution information on the frontend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant