only show published articles, add writer_id to json