use created_at for to_rss if not updated yet

This commit is contained in:
Kyle Drake 2023-07-20 13:36:38 +00:00
parent 161dfb70f3
commit d16bc0bace

View file

@ -1609,7 +1609,7 @@ class Site < Sequel::Model
def to_rss
RSS::Maker.make("atom") do |maker|
maker.channel.title = title
maker.channel.updated = updated_at
maker.channel.updated = (updated_at ? updated_at : created_at)
maker.channel.author = username
maker.channel.id = "#{username}.neocities.org"