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

Use default news image on news article pages #1175

Merged
merged 1 commit into from
Dec 3, 2018

Conversation

emmabeynon
Copy link
Contributor

@emmabeynon emmabeynon commented Dec 3, 2018

For https://trello.com/c/UXUxzEv4/512-amend-government-frontend-logic-to-use-default-organisation-image

In cases where a news article doesn't have an image, we use its primary
publishing organisation's default image.

In cases where a news article doesn't have an image, we use its primary
publishing organisation's default image.
@1pretz1
Copy link
Contributor

1pretz1 commented Dec 3, 2018

Just had a little dig into this and noticed on at least some documents there is an extra hash in default_news_hash with the key high_resolution_url. E.g: if you look at the primary org for https://www.gov.uk/api/content/government/publications/financial-health-notice-to-improve-coulsdon-sixth-form-college.

Has this been considered or is the standard image url okay?

@emmabeynon
Copy link
Contributor Author

@1pretz1 Sure, at the moment government-frontend is using the url rather than the high res url for images when a news article has one, so we're just using the same logic here for default news images and using url.

@1pretz1
Copy link
Contributor

1pretz1 commented Dec 3, 2018

@emmabeynon Okay cool! 👍

Copy link
Contributor

@1pretz1 1pretz1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@emmabeynon emmabeynon merged commit aa3142e into master Dec 3, 2018
@emmabeynon emmabeynon deleted the display-org-default-image-on-news-article-pages branch December 3, 2018 12:49
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 this pull request may close these issues.

3 participants