diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-14 13:10:25 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-14 13:11:29 +0200 |
commit | dfe659c16de6f9ad38e429b89131df20276e21d4 (patch) | |
tree | d9baa8e77e00fa94ea5e50d0ec4d02d82e8cc647 /lib | |
parent | 06399b3261a4118bf5ab2d2c6fcee7aad869bc66 (diff) | |
download | gitlab-ce-dfe659c16de6f9ad38e429b89131df20276e21d4.tar.gz |
Remove author link since all code.google.com links will be shut down.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/google_code_import/importer.rb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/gitlab/google_code_import/importer.rb b/lib/gitlab/google_code_import/importer.rb index 8bdb46237fc..07eccfa4db8 100644 --- a/lib/gitlab/google_code_import/importer.rb +++ b/lib/gitlab/google_code_import/importer.rb @@ -66,12 +66,11 @@ module Gitlab end last_id = raw_issue["id"] - author = mask_email(raw_issue["author"]["name"]) - author_link = raw_issue["author"]["htmlLink"] - date = DateTime.parse(raw_issue["published"]).to_formatted_s(:long) + author = mask_email(raw_issue["author"]["name"]) + date = DateTime.parse(raw_issue["published"]).to_formatted_s(:long) body = [] - body << "*By [#{author}](#{author_link}) on #{date}*" + body << "*By #{author} on #{date}*" body << "---" comments = raw_issue["comments"]["items"] @@ -120,12 +119,11 @@ module Gitlab comments.each_with_index do |raw_comment, i| next if raw_comment.has_key?("deletedBy") - author = mask_email(raw_comment["author"]["name"]) - author_link = raw_comment["author"]["htmlLink"] - date = DateTime.parse(raw_comment["published"]).to_formatted_s(:long) + author = mask_email(raw_comment["author"]["name"]) + date = DateTime.parse(raw_comment["published"]).to_formatted_s(:long) body = [] - body << "*By [#{author}](#{author_link}) on #{date}*" + body << "*By #{author} on #{date}*" body << "---" content = format_content(raw_comment["content"]) |