wordpress-mobile / WordPress-FluxC-Android

WordPress Network and Persistence layer based on the Flux architecture
GNU General Public License v2.0
57 stars 37 forks source link

Clear stored post formats when fetching #333

Open aforcier opened 7 years ago

aforcier commented 7 years ago

We should clear existing post formats here before we store the post formats we just fetched.

It's possible a custom post format was fetched before, the user switched themes, and that custom format is no longer available on their site - we shouldn't continue showing it.

aforcier commented 7 years ago

On the subject of post formats, in WPAndroid we used to only request supported post formats.

I believe the WP.com API only returns supported post formats by default (but sometimes it's missing some formats for some reason) - we may want to update the XML-RPC request to only return supported formats too.