Mercurial > rsstweet
comparison app/views/tweets/show.atom.builder @ 63:9e673e0fc04e
Skip replies
author | nanaya <me@myconan.net> |
---|---|
date | Tue, 01 Dec 2015 01:24:08 +0900 |
parents | 9ab79a764434 |
children | 1161ad2a4390 |
comparison
equal
deleted
inserted
replaced
62:9ab79a764434 | 63:9e673e0fc04e |
---|---|
1 atom_feed do |feed| | 1 atom_feed do |feed| |
2 feed.title "#{@user.name} (@#{@user.screen_name})" | 2 feed.title "#{@user.name} (@#{@user.screen_name})" |
3 feed.updated @tweets.first.try(:created_at) || Time.at(0) | 3 feed.updated @tweets.first.try(:created_at) || Time.at(0) |
4 | 4 |
5 @tweets.each do |tweet| | 5 @tweets.each do |tweet| |
6 next if tweet.in_reply_to_status_id.present? | |
6 feed.entry tweet, :url => tweet.uri, :updated => tweet.created_at do |entry| | 7 feed.entry tweet, :url => tweet.uri, :updated => tweet.created_at do |entry| |
7 entry.title tweet.created_at.rfc2822 | 8 entry.title tweet.created_at.rfc2822 |
8 entry.content render(:partial => "tweet", :formats => :html, :locals => { :tweet => tweet }), :type => "html" | 9 entry.content render(:partial => "tweet", :formats => :html, :locals => { :tweet => tweet }), :type => "html" |
9 entry.author do |author| | 10 entry.author do |author| |
10 author.name tweet.user.screen_name | 11 author.name tweet.user.screen_name |