Closed (fixed)
Project:
Apple News
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2019 at 17:21 UTC
Updated:
26 Jun 2019 at 18:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
m4oliveiComment #5
m4oliveiHere is a patch to accomplish all of the points in the description. Where the choice was between deleting the article in Apple News or marking it isPreview=false, I opted for isPreview=false.
Comment #7
m4oliveiSlight adjustments based on user acceptance testing.
Comment #8
m4oliveiReroll
Comment #10
m4oliveiTurns out the Apple News API doesn't let you put a live article back into preview mode, from their docs:
https://developer.apple.com/documentation/apple_news/update_an_article
As such, here is a change to detect when an article is being updated from live to preview and deletes the article from Apple News first before proceeding to create the article as preview.
Comment #11
rokit88 commentedReviewed and tested.
Comment #13
m4oliveiThanks! Merged to 8.x-1.x.