slight tweaks to pubsubhubub publishing
This commit is contained in:
parent
dd97f1b985
commit
7b0a354677
2 changed files with 3 additions and 2 deletions
|
|
@ -89,7 +89,7 @@ class StatusMessage < Post
|
||||||
<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>
|
<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>
|
<id>#{self.author.url}posts/#{self.id}</id>
|
||||||
<published>#{self.created_at.xmlschema}</published>
|
<published>#{self.created_at.xmlschema}</published>
|
||||||
<updated>#{self.updated_at.xmlschema}</updated>
|
<updated>#{self.updated_at.xmlschema}</updated>
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ class Pubsubhubbub
|
||||||
end
|
end
|
||||||
|
|
||||||
def publish(feed)
|
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
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue