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 P1 thumbnail image for social share on asset page #909

Merged
merged 1 commit into from Apr 23, 2019

Conversation

rstorey
Copy link
Member

@rstorey rstorey commented Apr 22, 2019

Closes #892

@rstorey rstorey requested a review from acdha April 22, 2019 22:13
@rstorey rstorey self-assigned this Apr 22, 2019
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 69.261% when pulling d79ba32 on open-graph-update into 5c958f0 on master.

thumbnail_url = asset.download_url.replace(
"http://tile.loc.gov", "https://tile.loc.gov"
)
thumbnail_url = thumbnail_url.replace("/pct:100/", "/!512,512/")
Copy link
Member

Choose a reason for hiding this comment

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

I'm wondering whether we should use https://github.com/Princeton-CDH/piffle for this — it's more processing to parse the URLs but would give us a higher degree of confidence that it won't break unexpectedly and would be more future-proof for other outside sources.

Copy link
Member Author

Choose a reason for hiding this comment

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

I ticketed that here: #910

@rstorey rstorey merged commit 3b5db5f into master Apr 23, 2019
@rstorey rstorey deleted the open-graph-update branch April 24, 2019 15:11
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.

Use P1 thumbnail image in asset detail page opengraph markup
3 participants