Commit 5e8611ca9649e7530a4b9ee601e46adc1d677852

Authored by Victor Costa
1 parent 8cd3d94d

community-hub: fix creation of comments for social networks

plugins/community_hub/tweeter_stream/lib/twurl/request_controller.rb
@@ -24,7 +24,7 @@ module Twurl @@ -24,7 +24,7 @@ module Twurl
24 print "#{comment_text}\n" 24 print "#{comment_text}\n"
25 comment = Comment.new 25 comment = Comment.new
26 comment.title = 'hub-message-twitter' 26 comment.title = 'hub-message-twitter'
27 - comment.source_id = options.page.id 27 + comment.source = options.page
28 comment.body = comment_text 28 comment.body = comment_text
29 comment.author_id = options.author_id 29 comment.author_id = options.author_id
30 comment.name = parsed["user"]["name"] 30 comment.name = parsed["user"]["name"]