Commit 9cbfb7784fe589fca2b5bb789462a60835a27a9a

Authored by Evandro Junior
1 parent f24f3ae5

twitter activated

plugins/community_hub/lib/community_hub_plugin/hub.rb
... ... @@ -34,13 +34,13 @@ class CommunityHubPlugin::Hub < Folder
34 34 end
35 35  
36 36 def self.twitter_service(hub, action)
37   -# author_id = 54
38   -# if action==:start
39   -# thread = Thread.new {
40   -# Twurl::Stream.run(hub, author_id,'torrent', File.dirname(__FILE__) + '/../../tweeter_stream/config/twurlrc')
41   -# } unless@@twitter_thread_started
42   -# @@twitter_thread_started = true
43   -# end
  37 + author_id = 54
  38 + if action==:start
  39 + thread = Thread.new {
  40 + Twurl::Stream.run(hub, author_id,'torrent', File.dirname(__FILE__) + '/../../tweeter_stream/config/twurlrc')
  41 + } unless@@twitter_thread_started
  42 + @@twitter_thread_started = true
  43 + end
44 44 end
45 45  
46 46 def self.facebook_service(hub, action)
... ...
plugins/community_hub/tweeter_stream/lib/twurl/stream.rb
... ... @@ -6,7 +6,7 @@ module Twurl
6 6 PATH_PATTERN = /^\/\w+/
7 7 PROTOCOL_PATTERN = /^\w+:\/\//
8 8 README = File.dirname(__FILE__) + '/../../README'
9   - @output ||= STDOUT
  9 + @output ||= STDOUT
10 10 class NoPathFound < Exception
11 11 end
12 12  
... ...