Project

General

Profile

Patch #44423 » 0002-Memoize-user-lookups-in-parse_redmine_links.patch

Marius BĂLTEANU, 2026-09-06 23:38

View differences:

app/helpers/application_helper.rb
end
elsif sep == "@"
name = remove_double_quotes(identifier)
u = User.visible.find_by_login(name.downcase)
@users_by_login ||= {}
u = @users_by_login.fetch(name.downcase) { |k| @users_by_login[k] = User.visible.find_by_login(k) }
link = link_to_mention(u, obj, only_path: only_path) if u
end
end
(2-2/2)