Commit f4888a5640eb5ad9a64069852d1c8c1c761daf80
1 parent
6cc87c81
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
community-hub: fix twetter comment
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
plugins/community_hub/tweeter_stream/lib/twurl/request_controller.rb
... | ... | @@ -20,14 +20,14 @@ module Twurl |
20 | 20 | begin |
21 | 21 | parsed = JSON.parse(chunk) |
22 | 22 | ic = Iconv.new('UTF-8//IGNORE', 'UTF-8') |
23 | - comment_text = ic.iconv("@#{parsed["user"]["name"]} " + _('said') + ": #{parsed["text"]}" + ' ')[0..-2] | |
23 | + comment_text = ic.iconv(parsed["text"])[0..-2] | |
24 | 24 | print "#{comment_text}\n" |
25 | 25 | comment = Comment.new |
26 | - comment.title = 'hub-message-twitter' | |
26 | + comment.title = 'hub-message-twitter' | |
27 | 27 | comment.source = options.page |
28 | 28 | comment.body = comment_text |
29 | 29 | comment.author_id = options.author_id |
30 | - comment.name = parsed["user"]["name"] | |
30 | + comment.name = ic.iconv(parsed["user"]["name"])[0..-2] | |
31 | 31 | comment.email = 'admin@localhost.local' |
32 | 32 | comment.save! |
33 | 33 | rescue => e | ... | ... |