docbrown/app/views/api/v0
Mike Coutermarsh 4c9959f0ff Social Cards Part 2 (#2188)
* Social Cards Part 2

This is a follow up to part 1: https://github.com/thepracticaldev/dev.to/pull/2090.

This PR updates the og:image URLs to use the new social_preview.png urls
added in Part 1.

So that the already generated/cached images do not need to be recreated,
this sets a MIGRATION_DATETIME. Any object that has been updated after
that date will generate a new image

Objects from before that date will not. They will use the new url.

* Fix weird change made by rubocop autocorrect

* Handle organizations + users

* Run CI

* Use time with zone to be explicit about timezone

* Simplify branching in user_social_image_url method

* Fix param alignment + bump migration date
2019-05-01 11:07:25 -04:00
..
articles Social Cards Part 2 (#2188) 2019-05-01 11:07:25 -04:00
comments Fix Lint/ShadowingOuterLocalVariable (#455) 2018-08-24 09:11:13 -04:00
github_repos Use Preact for asynchronous rendering for /settings/integrations (#986) 2018-10-31 15:51:07 -04:00
podcast_episodes Initial commit 2018-02-28 16:11:08 -05:00
tags Code cleanups (#659) 2018-08-07 11:00:13 -04:00
users Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
videos "/videos" (#2291) 2019-04-05 14:02:03 -04:00