Commit 9cbfb7784fe589fca2b5bb789462a60835a27a9a
1 parent
f24f3ae5
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
twitter activated
Showing
2 changed files
with
8 additions
and
8 deletions
Show diff stats
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