{"action":"closed","issue":{"url":"https://api.github.com/repos/DoSomething/LetsDoThis-iOS/issues/808","repository_url":"https://api.github.com/repos/DoSomething/LetsDoThis-iOS","labels_url":"https://api.github.com/repos/DoSomething/LetsDoThis-iOS/issues/808/labels{/name}","comments_url":"https://api.github.com/repos/DoSomething/LetsDoThis-iOS/issues/808/comments","events_url":"https://api.github.com/repos/DoSomething/LetsDoThis-iOS/issues/808/events","html_url":"https://github.com/DoSomething/LetsDoThis-iOS/issues/808","id":131146823,"number":808,"title":"User Campaigns API change","user":{"login":"aaronschachter","id":1236811,"avatar_url":"https://avatars.githubusercontent.com/u/1236811?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronschachter","html_url":"https://github.com/aaronschachter","followers_url":"https://api.github.com/users/aaronschachter/followers","following_url":"https://api.github.com/users/aaronschachter/following{/other_user}","gists_url":"https://api.github.com/users/aaronschachter/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronschachter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronschachter/subscriptions","organizations_url":"https://api.github.com/users/aaronschachter/orgs","repos_url":"https://api.github.com/users/aaronschachter/repos","events_url":"https://api.github.com/users/aaronschachter/events{/privacy}","received_events_url":"https://api.github.com/users/aaronschachter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DoSomething/LetsDoThis-iOS/labels/%23networking","name":"#networking","color":"bfdadc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-03T20:43:55Z","updated_at":"2016-02-03T20:52:46Z","closed_at":"2016-02-03T20:52:46Z","body":"A workaround for the Reportback Item status bug (#807) used to be that a user can see their own Reportback photos if they have been approved/promoted. That's no longer working because the format in the Northstar `user/:id/campaigns` response seems to have changed. We used to [check for the existence of a `reportback_items.campaign`](https://github.com/DoSomething/LetsDoThis-iOS/blob/999494c1ffd7773a8d164019376ba9779f48e629/Lets%20Do%20This/Models/DSOCampaignSignup.m#L29) but it's no longer included in the response:\r\n\r\n````\r\n2016-02-03 12:28:09.008 Lets Do This[4941:80421] initWithDict {\r\n    \"created_at\" = \"2015-10-01T16:27:16+0000\";\r\n    \"drupal_id\" = 1377;\r\n    \"reportback_data\" =     {\r\n        campaign =         {\r\n            \"campaign_runs\" =             {\r\n                current =                 {\r\n                    en =                     {\r\n                        id = 1846;\r\n                    };\r\n                    \"en-global\" =                     {\r\n                        id = 1846;\r\n                    };\r\n                };\r\n                past =                 (\r\n                );\r\n            };\r\n            id = 1377;\r\n            language =             {\r\n                \"language_code\" = en;\r\n                prefix = us;\r\n            };\r\n            \"reportback_info\" =             {\r\n                \"confirmation_message\" = \"<null>\";\r\n                copy = \"Yeah Mr. White! You really do have a plan! Yeah science!\";\r\n                noun = Products;\r\n                verb = Shipped;\r\n            };\r\n            title = \"Yeah, Science!\";\r\n            translations =             {\r\n                en =                 {\r\n                    \"language_code\" = en;\r\n                    prefix = us;\r\n                };\r\n                \"en-global\" =                 {\r\n                    \"language_code\" = \"en-global\";\r\n                    prefix = \"<null>\";\r\n                };\r\n                original = en;\r\n            };\r\n        };\r\n        \"created_at\" = 1443724202;\r\n        flagged = 0;\r\n        id = 3374;\r\n        quantity = 3;\r\n        \"reportback_items\" =         {\r\n            data =             (\r\n                                {\r\n                    caption = \"ooh ooh ooh sweet love of mine\";\r\n                    \"created_at\" = 1443724202;\r\n                    id = 5415;\r\n                    kudos =                     {\r\n                        data =                         (\r\n                        );\r\n                    };\r\n                    media =                     {\r\n                        type = image;\r\n                        uri = \"https://staging.beta.dosomething.org/sites/default/files/styles/480x480/public/reportbacks/1377/uid_1705400-nid_1377-0.jpg?itok=91e6VrBy\";\r\n                    };\r\n                    status = approved;\r\n                    uri = \"https://staging.beta.dosomething.org/api/v1/reportback-items/5415\";\r\n                }\r\n            );\r\n            total = 1;\r\n        };\r\n        \"updated_at\" = 1454529489;\r\n        uri = \"https://staging.beta.dosomething.org/api/v1/reportbacks/3374\";\r\n        user =         {\r\n            country = \"<null>\";\r\n            \"first_name\" = puppy;\r\n            id = 560b004aa59dbf3a038b4567;\r\n            \"last_initial\" = \"\";\r\n            photo = \"<null>\";\r\n        };\r\n        \"why_participated\" = \"<null>\";\r\n    };\r\n    \"reportback_id\" = 3374;\r\n    \"reportback_source\" = \"letsdothis_ios\";\r\n    \"signup_group\" = 2717;\r\n    \"signup_id\" = 2717;\r\n    \"signup_source\" = \"letsdothis_ios\";\r\n    \"updated_at\" = \"2015-10-01T18:26:26+0000\";\r\n}\r\n````\r\n"}}