diff --git a/plugins/community_hub/lib/community_hub_plugin/hub.rb b/plugins/community_hub/lib/community_hub_plugin/hub.rb index 3deb73a..506ff63 100644 --- a/plugins/community_hub/lib/community_hub_plugin/hub.rb +++ b/plugins/community_hub/lib/community_hub_plugin/hub.rb @@ -34,13 +34,13 @@ class CommunityHubPlugin::Hub < Folder end def self.twitter_service(hub, action) -# author_id = 54 -# if action==:start -# thread = Thread.new { -# Twurl::Stream.run(hub, author_id,'torrent', File.dirname(__FILE__) + '/../../tweeter_stream/config/twurlrc') -# } unless@@twitter_thread_started -# @@twitter_thread_started = true -# end + author_id = 54 + if action==:start + thread = Thread.new { + Twurl::Stream.run(hub, author_id,'torrent', File.dirname(__FILE__) + '/../../tweeter_stream/config/twurlrc') + } unless@@twitter_thread_started + @@twitter_thread_started = true + end end def self.facebook_service(hub, action) diff --git a/plugins/community_hub/tweeter_stream/lib/twurl/stream.rb b/plugins/community_hub/tweeter_stream/lib/twurl/stream.rb index d83313d..5f22181 100755 --- a/plugins/community_hub/tweeter_stream/lib/twurl/stream.rb +++ b/plugins/community_hub/tweeter_stream/lib/twurl/stream.rb @@ -6,7 +6,7 @@ module Twurl PATH_PATTERN = /^\/\w+/ PROTOCOL_PATTERN = /^\w+:\/\// README = File.dirname(__FILE__) + '/../../README' - @output ||= STDOUT + @output ||= STDOUT class NoPathFound < Exception end -- libgit2 0.21.2