lib/social2social/models/shareable.rb in social2social-0.0.4 vs lib/social2social/models/shareable.rb in social2social-0.0.5
- old
+ new
@@ -10,17 +10,17 @@
after_create :init_feeds_to_hub
end
module InstanceMethods
def init_feeds_to_hub
- publish_or_update_home_feed
+ publish_or_update_public_feed
#TO-DO: add calls to other public feeds if any
end
- def publish_or_update_home_feed
+ def publish_or_update_public_feed
t = Thread.new do
hub = Social2social.hub
- topic = Social2social.node_base_url+'/api/user/'+self.slug+'/home.atom'
+ topic = Social2social.node_base_url+'/api/user/'+self.slug+'/public.atom'
uri = URI.parse(hub)
response = Net::HTTP::post_form(uri,{ 'hub.mode' => 'publish',
'hub.url' => topic})
#TO-DO: process 4XX look at: response.status