Inline submission preview

```ruby
def news_type news
  result = [news].map do |item|
    item['type'] = url_type(item['url'])
    item
  end

  return news.is_a? Array ? result : result.first
end
```