atom_feed do |feed|
  feed.title(setting(:name))
  feed.updated(@papers[0].created_at) if @papers.length > 0

  @papers.each do |paper|
    feed.entry(paper) do |entry|
      entry.title(paper.title)
      entry.state(paper.state)
      entry.archive_doi(paper.archive_doi)
      entry.software_version(paper.software_version)
      entry.content(formatted_body(paper), type: 'html')
    end
  end
end

atom_feed do |feed|
  feed.title(setting(:name))
  feed.updated(@papers[0].created_at) if @papers.length > 0

  @papers.each do |paper|
    next if paper.invisible?
    feed.entry(paper) do |entry|
      case paper.state
      entry.title(paper.title)
      entry.state(paper.state)
      entry.archive_doi(paper.archive_doi)
      entry.software_version(paper.software_version)
      entry.content(formatted_body(paper), type: 'html')
    end
  end
end

Hide papers that have not made it to review yet
Hide papers that have not made it to review yet
