diff --git a/plugins/community_hub/tweeter_stream/lib/twurl/request_controller.rb b/plugins/community_hub/tweeter_stream/lib/twurl/request_controller.rb index 807c9d5..dec9c25 100755 --- a/plugins/community_hub/tweeter_stream/lib/twurl/request_controller.rb +++ b/plugins/community_hub/tweeter_stream/lib/twurl/request_controller.rb @@ -20,14 +20,14 @@ module Twurl begin parsed = JSON.parse(chunk) ic = Iconv.new('UTF-8//IGNORE', 'UTF-8') - comment_text = ic.iconv("@#{parsed["user"]["name"]} " + _('said') + ": #{parsed["text"]}" + ' ')[0..-2] + comment_text = ic.iconv(parsed["text"])[0..-2] print "#{comment_text}\n" comment = Comment.new - comment.title = 'hub-message-twitter' + comment.title = 'hub-message-twitter' comment.source = options.page comment.body = comment_text comment.author_id = options.author_id - comment.name = parsed["user"]["name"] + comment.name = ic.iconv(parsed["user"]["name"])[0..-2] comment.email = 'admin@localhost.local' comment.save! rescue => e -- libgit2 0.21.2