Skip to content
Extraits de code Groupes Projets
Valider 7b0a3546 rédigé par maxwell's avatar maxwell
Parcourir les fichiers

slight tweaks to pubsubhubub publishing

parent dd97f1b9
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -89,7 +89,7 @@ class StatusMessage < Post ...@@ -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 ...@@ -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
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter