forked from diaspora/diaspora-project-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dennis Schubert
committed
Dec 14, 2014
1 parent
7a1f4f4
commit a40df1a
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
atom_feed do |feed| | ||
feed.title(t 'pages.planet.headline') | ||
feed.updated(@entries.first.updated_at) | ||
|
||
for entry in @entries | ||
feed.entry(entry, :url => entry.url) do |feeditem| | ||
feeditem.title(entry.title) | ||
|
||
feeditem.author do |author| | ||
author.name entry.author | ||
end | ||
|
||
feeditem.content(entry.body, :type => 'html') | ||
end | ||
end | ||
end |