Project

General

Profile

Defect #43838 » 0001-Look-for-mentions-by-login-using-the-existing-find_b.patch

Marius BĂLTEANU, 2026-02-28 07:22

View differences:

app/helpers/application_helper.rb
link = link_to_project(p, {:only_path => only_path}, :class => 'project')
end
when 'user'
u = User.visible.find_by("LOWER(login) = :s AND type = 'User'", :s => name.downcase)
u = User.visible.find_by_login(name.downcase)
link = link_to_user(u, :only_path => only_path) if u
end
elsif sep == "@"
name = remove_double_quotes(identifier)
u = User.visible.find_by("LOWER(login) = :s AND type = 'User'", :s => name.downcase)
u = User.visible.find_by_login(name.downcase)
link = link_to_mention(u, obj, only_path: only_path) if u
end
end
(4-4/6)