slight tweaks to pubsubhubub publishing

This commit is contained in:
maxwell 2011-03-10 12:17:34 -08:00
parent dd97f1b985
commit 7b0a354677
2 changed files with 3 additions and 2 deletions

View file

@ -89,7 +89,7 @@ class StatusMessage < Post
<entry>
<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}p/#{self.id}"/>
<id>#{self.author.url}posts/#{self.id}</id>
<published>#{self.created_at.xmlschema}</published>
<updated>#{self.updated_at.xmlschema}</updated>

View file

@ -12,6 +12,7 @@ class Pubsubhubbub
end
def publish(feed)
RestClient.post(@hub, :headers => @headers, 'hub.url' => feed, 'hub.mode' => 'publish')
response = RestClient.post(@hub, :headers => @headers, 'hub.url' => feed, 'hub.mode' => 'publish')
response
end
end