{"action":"opened","issue":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/issues/5364","repository_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/issues/5364/labels{/name}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/issues/5364/comments","events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/issues/5364/events","html_url":"https://github.com/wordpress-mobile/WordPress-iOS/issues/5364","id":154466822,"number":5364,"title":"Posts: Duplicate post appears in post list after saving/publishing","user":{"login":"rachelmcr","id":8658164,"avatar_url":"https://avatars.githubusercontent.com/u/8658164?v=3","gravatar_id":"","url":"https://api.github.com/users/rachelmcr","html_url":"https://github.com/rachelmcr","followers_url":"https://api.github.com/users/rachelmcr/followers","following_url":"https://api.github.com/users/rachelmcr/following{/other_user}","gists_url":"https://api.github.com/users/rachelmcr/gists{/gist_id}","starred_url":"https://api.github.com/users/rachelmcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachelmcr/subscriptions","organizations_url":"https://api.github.com/users/rachelmcr/orgs","repos_url":"https://api.github.com/users/rachelmcr/repos","events_url":"https://api.github.com/users/rachelmcr/events{/privacy}","received_events_url":"https://api.github.com/users/rachelmcr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/labels/Posts%20List","name":"Posts List","color":"006b75"},{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/labels/[Type]%20Bug","name":"[Type] Bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-12T12:09:44Z","updated_at":"2016-05-12T12:09:44Z","closed_at":null,"body":"### Expected behavior\r\n\r\nAfter I save or publish a post, that post appears in the posts list.\r\n\r\n### Actual behavior\r\n\r\nAfter I save or publish a post, two copies of the post appear in the post list. The duplicate remains in the list until the list is synced/refreshed.\r\n\r\n### Steps to reproduce the behavior\r\n\r\n1. Open the editor to start a new post\r\n2. Add a title and content to the post\r\n3. Publish the post OR Tap the \"X\" to exit the editor and save the draft\r\n\r\nResult:\r\n\r\n- In the post list, two copies of the post appear\r\n- One copy has the \"Local\" label until the post is uploaded\r\n- After the post is uploaded, the post that was marked \"Local\" only displays the title\r\n\r\n#### Screenshots\r\n\r\n##### Immediately after the editor closes (after saving/publishing in the editor)\r\n\r\n![2016-05-12 13 00 12](https://cloud.githubusercontent.com/assets/8658164/15214027/90e3de74-1842-11e6-9332-dfe14ecc3f6c.png)\r\n\r\n##### After the local post finishes uploading\r\n\r\n![2016-05-12 13 00 17](https://cloud.githubusercontent.com/assets/8658164/15214029/94dfa260-1842-11e6-9c37-09f1bc8c8046.png)\r\n\r\n\r\n##### After the list is refreshed (manually pulling down to refresh or after its syncs with the site)\r\n\r\n![2016-05-12 13 00 23](https://cloud.githubusercontent.com/assets/8658164/15214031/96a0090a-1842-11e6-8337-4256b17a8239.png)\r\n\r\n\r\n##### Tested on iPhone 6, iOS 9.3.1, WPiOS 6.2.0.20160511\r\n"}}