Commit 68a2ac5ec1dc227fbb40bc6bc526e05beb2a793c
1 parent
6bd32a6a
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Commit para fazer pull
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
plugins/community_hub/lib/community_hub_plugin/hub.rb
| @@ -27,7 +27,7 @@ class CommunityHubPlugin::Hub < Folder | @@ -27,7 +27,7 @@ class CommunityHubPlugin::Hub < Folder | ||
| 27 | end | 27 | end |
| 28 | 28 | ||
| 29 | def self.twitter_service(page, action) | 29 | def self.twitter_service(page, action) |
| 30 | - action=:start | 30 | + author_id = 54 |
| 31 | if action==:start | 31 | if action==:start |
| 32 | thread = Thread.new { | 32 | thread = Thread.new { |
| 33 | Twurl::Stream.run(page, author_id,'torrent', File.dirname(__FILE__) + '/../../tweeter_stream/config/.twurlrc') | 33 | Twurl::Stream.run(page, author_id,'torrent', File.dirname(__FILE__) + '/../../tweeter_stream/config/.twurlrc') |
| @@ -37,7 +37,7 @@ class CommunityHubPlugin::Hub < Folder | @@ -37,7 +37,7 @@ class CommunityHubPlugin::Hub < Folder | ||
| 37 | end | 37 | end |
| 38 | 38 | ||
| 39 | def self.facebook_service(page, action) | 39 | def self.facebook_service(page, action) |
| 40 | - action=:start | 40 | + author_id = 54 |
| 41 | page_id="mundoreagindo" | 41 | page_id="mundoreagindo" |
| 42 | if action==:start | 42 | if action==:start |
| 43 | thread = Thread.new { | 43 | thread = Thread.new { |
plugins/community_hub/tweeter_stream/lib/twurl/stream.rb
| @@ -17,6 +17,7 @@ module Twurl | @@ -17,6 +17,7 @@ module Twurl | ||
| 17 | @page = page # maybe should not be a class variable | 17 | @page = page # maybe should not be a class variable |
| 18 | @author_id = author_id | 18 | @author_id = author_id |
| 19 | @@file_path = config_file_path | 19 | @@file_path = config_file_path |
| 20 | + raise page.inspect | ||
| 20 | Twurl.options = Options.new | 21 | Twurl.options = Options.new |
| 21 | Twurl.options.command = 'request' # Not necessary anymore | 22 | Twurl.options.command = 'request' # Not necessary anymore |
| 22 | Twurl.options.data = {"track"=>tags} | 23 | Twurl.options.data = {"track"=>tags} |