diff --git a/source/includes/authenticated_api/_partnerships.md b/source/includes/authenticated_api/_partnerships.md index 596ba397ca8..bf76306af15 100644 --- a/source/includes/authenticated_api/_partnerships.md +++ b/source/includes/authenticated_api/_partnerships.md @@ -18,7 +18,7 @@ Partnerships are other organisations you collaborate with using the platform. "created_at": "2015-12-02T01:43:17Z", "updated_at": "2015-12-02T01:43:17Z", "url": "https://demo.controlshiftlabs.com/partnerships/fight-fascism", - "image": "https://cdn.example.com/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6ODI2Mzg5LCJ--f17a/OiJ2YXJpYXRpb24ifX0=--924a23c065f/a-little-teapot.png" + "image": "https://images.controlshift.app/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6ODI2Mzg5LCJ--f17a/OiJ2YXJpYXRpb24ifX0=--924a23c065f/a-little-teapot.png" }, { "id": 107, @@ -63,7 +63,7 @@ Get a paginated list of all partnerships. "created_at": "2015-12-02T01:43:17Z", "updated_at": "2015-12-02T01:43:17Z", "url": "https://demo.controlshiftlabs.com/partnerships/fight-fascism", - "image": "https://cdn.example.com/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6ODI2Mzg5LCJ--f17a/OiJ2YXJpYXRpb24ifX0=--924a23c065f/a-little-teapot.png" + "image": "https://images.controlshift.app/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6ODI2Mzg5LCJ--f17a/OiJ2YXJpYXRpb24ifX0=--924a23c065f/a-little-teapot.png" } } ``` diff --git a/source/includes/authenticated_api/_petitions.md.erb b/source/includes/authenticated_api/_petitions.md.erb index 84ca622ab2b..20c4915caaf 100644 --- a/source/includes/authenticated_api/_petitions.md.erb +++ b/source/includes/authenticated_api/_petitions.md.erb @@ -56,12 +56,12 @@ Petition are pieces of content that can be signed by members. "ended_story": "This was an overwhelming success!", "image": { "urls": { - "open_graph": "http://cdn.example.com/petitions/images/25/open_graph/a-little-teapot.png?1516647704", - "horizontal": "http://cdn.example.com/petitions/images/25/horizontal/a-little-teapot.png?1516647704", - "hero": "http://cdn.example.com/petitions/images/25/hero/a-little-teapot.png?1516647704", - "original": "http://cdn.example.com/petitions/images/25/original/a-little-teapot.png?1516647704", - "form": "http://cdn.example.com/petitions/images/25/form/a-little-teapot.png?1516647704" + "original": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--hijklmnop/a-little-teapot.png", + "landscape": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/a-little-teapot.png", + "small_landscape": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--qrstuv/a-little-teapot.png", + "social": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--abcde/a-little-teapot.png" }, + "caption": "This picture was taken by a human, not generated by AI.", "description": "Picture of a small teapot with flowers on it and money tucked under the lid" }, "public_signature_count": 234, diff --git a/source/includes/json/_category_petitions.md b/source/includes/json/_category_petitions.md index 46ae6ccf40e..481e8508209 100644 --- a/source/includes/json/_category_petitions.md +++ b/source/includes/json/_category_petitions.md @@ -40,23 +40,23 @@ $(document).ready(function(){ "ended": false, "created_at": "2015-12-02T01:43:17Z", "updated_at": "2017-05-07T15:38:39Z", - "image_url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/hero/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741", + "image_url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg", "additional_image_sizes_url": [ { "style": "original", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/original/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--hijklmnop/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "form", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/form/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "small_landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--qrstuv/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "horizontal", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/horizontal/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "open_graph", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/open_graph/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "social", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--abcde/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" } ], "target": { @@ -92,23 +92,23 @@ $(document).ready(function(){ "locale": "en", "created_at": "2014-10-02T01:43:17Z", "updated_at": "2018-05-07T15:38:39Z", - "image_url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/hero/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741", + "image_url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg", "additional_image_sizes_url": [ { "style": "original", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/original/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--hijklmnop/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "form", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/form/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "small_landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--qrstuv/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "horizontal", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/horizontal/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "open_graph", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/open_graph/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "social", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--abcde/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" } ], "target": { diff --git a/source/includes/json/_featured_petitions.md b/source/includes/json/_featured_petitions.md index 9cc1a1f84d9..316b03803c5 100644 --- a/source/includes/json/_featured_petitions.md +++ b/source/includes/json/_featured_petitions.md @@ -40,23 +40,23 @@ $(document).ready(function(){ "ended": false, "created_at": "2014-10-02T01:43:17Z", "updated_at": "2018-05-07T15:38:39Z", - "image_url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/hero/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741", + "image_url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg", "additional_image_sizes_url": [ { "style": "original", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/original/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--hijklmnop/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "form", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/form/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "small_landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--qrstuv/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "horizontal", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/horizontal/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "open_graph", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/open_graph/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "social", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--abcde/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" } ], "target": { @@ -104,24 +104,23 @@ $(document).ready(function(){ "ended": false, "created_at": "2016-08-12T18:08:32Z", "updated_at": "2016-09-14T12:43:45Z", - "image_url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/167492/original/IMG_1854.JPG?1472046912", + "image_url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg", "additional_image_sizes_url": [ - ] { "style": "original", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/167492/original/IMG_1854.JPG?1473884741" + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--hijklmnop/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "form", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/167492/form/IMG_1854.JPG?1473884741" + "style": "small_landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--qrstuv/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "horizontal", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/167492/horizontal/IMG_1854.JPG?1473884741" + "style": "landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "open_graph", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/167492/open_graph/IMG_1854.JPG?1473884741" + "style": "social", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--abcde/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" } ], "location": { diff --git a/source/includes/json/_partnership_petitions.md b/source/includes/json/_partnership_petitions.md index 61c984f130b..a5240677c8d 100644 --- a/source/includes/json/_partnership_petitions.md +++ b/source/includes/json/_partnership_petitions.md @@ -40,23 +40,23 @@ $(document).ready(function(){ "ended": false, "created_at": "2015-12-02T01:43:17Z", "updated_at": "2017-05-07T15:38:39Z", - "image_url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/hero/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741", + "image_url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg", "additional_image_sizes_url": [ { "style": "original", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/original/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--hijklmnop/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "form", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/form/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "small_landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--qrstuv/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "horizontal", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/horizontal/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "open_graph", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/open_graph/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "social", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--abcde/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" } ], "target": { @@ -94,23 +94,23 @@ $(document).ready(function(){ "ended": false, "created_at": "2014-10-02T01:43:17Z", "updated_at": "2018-05-07T15:38:39Z", - "image_url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/hero/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741", + "image_url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg", "additional_image_sizes_url": [ { "style": "original", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/original/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--hijklmnop/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "form", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/form/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "small_landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--qrstuv/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "horizontal", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/horizontal/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "open_graph", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/open_graph/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "social", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--abcde/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" } ], "target": { diff --git a/source/includes/json/_single_petition.md b/source/includes/json/_single_petition.md index 971d6eb4d24..718c61ffb81 100644 --- a/source/includes/json/_single_petition.md +++ b/source/includes/json/_single_petition.md @@ -43,8 +43,8 @@ $(document).ready(function(){ "goal": 500, "effort": null, "partnership": null, - "resized_image_url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/hero/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741", - "image_url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/original/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741", + "resized_image_url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg", + "image_url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--hijklmnop/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg", "creator_name": "Kristyn Arrighi", "signature_count": 223, "location": {