             post_thumbnail: featuredImage.id
             post_status: if article.draft then 'draft' else 'publish'
             post_name: article.slug
+            comment_status: 'open'
             terms_names:
               category: [@categories[article.category]]
               post_tag: ['ewao-archive']

          log "writing media file: #{file.name}, #{file.type}"
          @wordpress.uploadFile file, (error, result) ->
            if error
              console.error red error, "\nfilename: ", file.name
              reject error
            else
              result.origUrl = origUrl

          debug 'url', url
          mediaLoaded.push @writeMedia {url}

      # once all media has been loaded (or failed)
      Promise.settle mediaLoaded
        .then (media) => # replace media urls in article
          for file in media
            if file.isFulfilled()
              file = file.value()
              article.content = article.content.replace new RegExp(escapeStringRegexp file.origUrl), file.url
            else
              console.error red "Article has missing media: #{article.title}"
          media
        .then (media) => # write article to wordpress
          featuredImage = if media[0].isFulfilled() then media[0].value() else {}
          data =
            post_type:    'post'
            post_status:  'publish'
