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,13 +34,13 @@ class CommunityHubPlugin::Hub < Folder | ||
| 34 | end | 34 | end |
| 35 | 35 | ||
| 36 | def self.twitter_service(hub, action) | 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 | end | 44 | end |
| 45 | 45 | ||
| 46 | def self.facebook_service(hub, action) | 46 | def self.facebook_service(hub, action) |
plugins/community_hub/tweeter_stream/lib/twurl/stream.rb
| @@ -6,7 +6,7 @@ module Twurl | @@ -6,7 +6,7 @@ module Twurl | ||
| 6 | PATH_PATTERN = /^\/\w+/ | 6 | PATH_PATTERN = /^\/\w+/ |
| 7 | PROTOCOL_PATTERN = /^\w+:\/\// | 7 | PROTOCOL_PATTERN = /^\w+:\/\// |
| 8 | README = File.dirname(__FILE__) + '/../../README' | 8 | README = File.dirname(__FILE__) + '/../../README' |
| 9 | - @output ||= STDOUT | 9 | + @output ||= STDOUT |
| 10 | class NoPathFound < Exception | 10 | class NoPathFound < Exception |
| 11 | end | 11 | end |
| 12 | 12 |