Strict enforcing of allowed post types

There has been a regression which allows wordpress objects that are not post or page types (notably attachments) to get pushed to Discourse, which this should fix