mastodon/app/helpers/atom_helper.rb
2016-02-22 16:00:20 +01:00

6 lines
165 B
Ruby

module AtomHelper
def stream_updated_at
@account.stream_entries.last ? @account.stream_entries.last.created_at.iso8601 : @account.updated_at.iso8601
end
end