added content to rss feed
This commit is contained in:
parent
90aac1d175
commit
1baafac84b
3 changed files with 9 additions and 3 deletions
|
|
@ -39,9 +39,7 @@ class PublicsController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def hub
|
def hub
|
||||||
if params['hub.mode'] == 'subscribe' || params['hub.mode'] == 'unsubscribe'
|
render :text => params['hub.challenge'], :status => 202, :layout => false
|
||||||
render :text => params['hub.challenge'], :status => 202, :layout => false
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def receive
|
def receive
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,7 @@ class StatusMessage < Post
|
||||||
<<-XML
|
<<-XML
|
||||||
<entry>
|
<entry>
|
||||||
<title>#{x(self.formatted_message(:plain_text => true))}</title>
|
<title>#{x(self.formatted_message(:plain_text => true))}</title>
|
||||||
|
<content>#{x(self.formatted_message(:plain_text => true))}</content>
|
||||||
<link rel="alternate" type="text/html" href="#{self.author.url}status_messages/#{self.id}"/>
|
<link rel="alternate" type="text/html" href="#{self.author.url}status_messages/#{self.id}"/>
|
||||||
<id>#{self.author.url}posts/#{self.id}</id>
|
<id>#{self.author.url}posts/#{self.id}</id>
|
||||||
<published>#{self.created_at.xmlschema}</published>
|
<published>#{self.created_at.xmlschema}</published>
|
||||||
|
|
|
||||||
|
|
@ -100,4 +100,11 @@ describe PublicsController do
|
||||||
response.should be_not_found
|
response.should be_not_found
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe '#hub' do
|
||||||
|
it 'succeeds' do
|
||||||
|
get :hub
|
||||||
|
response.should be_success
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue