Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

replaced avatar_url from SVG to URL

Aleksey Kurepin8554e43a26f0
diff --git a/lib/open_project/gitlab_integration/services/upsert_gitlab_user.rb b/lib/open_project/gitlab_integration/services/upsert_gitlab_user.rb
index 87aaac7d5a1..fcc9bea5543 100644
--- a/lib/open_project/gitlab_integration/services/upsert_gitlab_user.rb
+++ b/lib/open_project/gitlab_integration/services/upsert_gitlab_user.rb
@@ -60,9 +60,7 @@ module OpenProject
end
def avatar_url(payload)
- # rubocop:disable Layout/LineLength
- payload.avatar_url.presence || "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath d='M12 2.5a5.5 5.5 0 0 1 3.096 10.047 9.005 9.005 0 0 1 5.9 8.181.75.75 0 1 1-1.499.044 7.5 7.5 0 0 0-14.993 0 .75.75 0 0 1-1.5-.045 9.005 9.005 0 0 1 5.9-8.18A5.5 5.5 0 0 1 12 2.5ZM8 8a4 4 0 1 0 8 0 4 4 0 0 0-8 0Z'%3E%3C/path%3E%3C/svg%3E"
- # rubocop:enable Layout/LineLength
+ payload.avatar_url.presence || 'https://www.gravatar.com/avatar/?d=mp'
end
end
end