From e8af8d19454e8f989a246ba293c9f396648ce4c5 Mon Sep 17 00:00:00 2001 From: Tim Felgentreff Date: Tue, 14 Sep 2010 18:26:08 +0200 Subject: [PATCH] Still use the event api for now --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index fe4b467b..725bde78 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -307,7 +307,7 @@ class ApplicationController < ActionController::Base def render_feed(items, options={}) @items = items || [] - @items.sort! {|x,y| y.last_journal.event_datetime <=> x.last_journal.event_datetime } + @items.sort! {|x,y| y.event_datetime <=> x.event_datetime } @items = @items.slice(0, Setting.feeds_limit.to_i) @title = options[:title] || Setting.app_title render :template => "common/feed.atom.rxml", :layout => false, :content_type => 'application/atom+xml'