public
Description: This contains various plugins for Feather
Clone URL: git://github.com/eldiablo/feather-plugins.git
Search Repo:
Click here to lend your support to: feather-plugins and make a donation at www.pledgie.com !
Fix link-element, add link rel=self element
cypher (author)
Thu May 01 06:45:54 -0700 2008
commit  d8332e314c521dbe05f558c67094dd484440b504
tree    8b36f70dd9a1922e3c73014436eb2ed53fc90d27
parent  2928ad11d0e754b85e3153d0f1de40aa68e4ddc6
...
30
31
32
33
34
 
35
36
37
...
89
90
91
92
93
94
 
 
95
96
97
...
30
31
32
 
 
33
34
35
36
...
88
89
90
 
 
 
91
92
93
94
95
0
@@ -30,8 +30,7 @@
0
       xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
0
         xml.title Configuration.current.title
0
         xml.subtitle Configuration.current.tag_line
0
- # Leave that one out for the moment
0
- #xml.link :href => "http://#{request.env['HTTP_HOST']}/atom", :rel => "self"
0
+ xml.link :href => "http://#{request.env['HTTP_HOST']}#{request.uri}", :rel => "self"
0
         xml.link :href => "http://#{request.env['HTTP_HOST']}"
0
         # The parentheses are needed, otherwise one gets a pretty weird error complaining about String not having strftime
0
         xml.updated( (@articles.any? ? @articles.first.published_at : DateTime.now).strftime("%Y-%m-%dT%H:%M:%SZ"))
0
@@ -89,9 +88,8 @@
0
       xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
0
         xml.title Configuration.current.title
0
         xml.subtitle Configuration.current.tag_line
0
- # Leave that one out for the moment
0
- #xml.link :href => "http://#{request.env['HTTP_HOST']}/atom", :rel => "self"
0
- xml.link :href => "http://#{request.env['HTTP_HOST']}#{request.uri}"
0
+ xml.link :href => "http://#{request.env['HTTP_HOST']}#{request.uri}", :rel => "self"
0
+ xml.link :href => "http://#{request.env['HTTP_HOST']}"
0
         # The parentheses are needed, otherwise one gets a pretty weird error complaining about String not having strftime
0
         xml.updated( (@comments.any? ? @comments.first.created_at : DateTime.now).strftime("%Y-%m-%dT%H:%M:%SZ"))
0
         xml.id "http://#{request.env['HTTP_HOST']}#{request.uri}"

Comments

    No one has commented yet.