diff --git a/app/controllers/e_papers_controller.rb b/app/controllers/e_papers_controller.rb index acf25a1..6ecd35c 100644 --- a/app/controllers/e_papers_controller.rb +++ b/app/controllers/e_papers_controller.rb @@ -51,10 +51,13 @@ class EPapersController < ApplicationController paper = Paper.find_by(:uid => params[:uid]) topics = paper.topics.collect do |topic| + desc = ActionView::Helpers::SanitizeHelper.strip_tags(topic.content) { "link_to_show" => OrbitHelper.url_to_show(topic.to_param) + "?method=showtopic", "episode" => topic.episode, - "publish_date" => topic.created_at + "content" => topic.content, + "description" => desc[0..100], + "publish_date" => topic.created_at.strftime("%Y-%m-%d") } end {