aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorRhenium <rhenium@rhe.jp>2013-11-17 07:50:07 +0900
committerRhenium <rhenium@rhe.jp>2013-11-17 07:50:07 +0900
commit906b38bb2d6d7e20aea9c59c868f118eca916549 (patch)
tree4373c31f3a7d24f742a9de00f26ef8e43edef280 /app/views
parentc6b178c0698fdecbc4de744981953f25501782a2 (diff)
downloadaclog-906b38bb2d6d7e20aea9c59c868f118eca916549.tar.gz
update rss format
Diffstat (limited to 'app/views')
-rw-r--r--app/views/tweets/_tweets.rss.builder5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/tweets/_tweets.rss.builder b/app/views/tweets/_tweets.rss.builder
index 4fea26a..2805ace 100644
--- a/app/views/tweets/_tweets.rss.builder
+++ b/app/views/tweets/_tweets.rss.builder
@@ -8,10 +8,11 @@ xml.rss version: "2.0", "xmlns:atom" => "http://www.w3.org/2005/Atom" do
@tweets.each_with_index do |tweet, i|
xml.item do
xml.title "#{tweet.favorites_count}/#{tweet.retweets_count}: #{CGI.unescapeHTML(strip_tags(format_tweet_text(tweet.text)))}"
- xml.description "Has been favorited by #{tweet.favorites_count} people, retweeted by #{tweet.retweets_count} people"
+ xml.description "Has been favorited by #{tweet.favorites_count} #{tweet.favorites_count != 1 ? "people" : "person"}, " +
+ "retweeted by #{tweet.retweets_count} #{tweet.retweets_count != 1 ? "people" : "person"}."
xml.pubDate tweet.tweeted_at.rfc2822
xml.link tweet_url(tweet.id)
- xml.guid tweet_url(tweet.id) + "#" + i.to_s
+ xml.guid tweet_url(tweet.id) + "#" + tweet.reactions_count.to_s
end
end
end