Wp-calypso: Reader Refresh: recommended posts allow pictures 200+px wide

Created on 19 Dec 2016  ·  4Comments  ·  Source: Automattic/wp-calypso

As discussed with ∇ { @fraying, @gibrown }: wp-calypso and elasticsearch have different width requirements for featured-images in Recommended Posts.

Client: 350px wide and area 30000px source
ES: 200px wide

Reader [Status] Stale [Type] Bug

Most helpful comment

@fraying nailed it

All 4 comments

I think the status is: Currently the backend says a post has an image if it's over 200px, but the frontend won't display it unless it's over 350px. As a result, we're showing some recs without images. Let's change the frontend to match the backend. Make sense?

@fraying nailed it

@blowery @bluefuton: do you know of an easy way to accomplish this?
This needs to be done at post-normalization time and I'm not sure if there is a way to differentiate rp from regular posts.

The only idea I had was to do a check in the feed-post-store for if it is a RelatedPost store and then pass an extra param to normalizePost specifying so. I don't like this solution though.

Does the RP api return back a different shape?

This issue has been marked as stale because it hasn't been updated in a while. It will be closed in a week.
If you would like it to remain open, can you please you comment below and see what you can do to get things moving with this issue?
Thanks! 🙏

Was this page helpful?
0 / 5 - 0 ratings