Skip to content

Commit

Permalink
Made the atom tags valid.
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyatom committed Jun 1, 2008
1 parent b7e0998 commit a5e5010
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/vanilla/dynasnips/kind.rb
Expand Up @@ -26,8 +26,9 @@ def render_entry_in_template(snip, as, kind)
e.updated = snip.updated_at || snip.created_at
e.content = Atom::Content::Html.new(rendered_contents)
e.title = snip.name
e.authors = [Atom::Author.new(:name => snip.author || domain)]
e.links << Atom::Link.new(:href => "http://#{domain}#{Vanilla::Routes.url_to(snip.name)}")
e.id = "tag:#{domain},#{snip.id}:#{snip.name}"
e.id = "tag:#{domain},#{snip.id}:/#{snip.name}"
end
end
end
Expand All @@ -40,7 +41,7 @@ def render_entry_collection(snips, entries, as, kind)
Atom::Feed.new do |f|
f.title = feed_title
f.updated = snips[0].updated_at
f.id = "tag:#{domain}:kind/#{kind}"
f.id = "tag:#{domain},2008-06-01:kind/#{kind}"
f.entries = entries
end.to_xml
end
Expand Down

0 comments on commit a5e5010

Please sign in to comment.