X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7ec003dd01ff25765b46788aa0ec90cedd94a2de..ba5107ebb543a396fc78069c75c431e4d3887ee1:/app/helpers/application_helper.rb?ds=inline diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 18f233e50..e32d1bb6e 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -102,9 +102,9 @@ module ApplicationHelper def note_author(object, link_options = {}) if object.author.nil? - h(object.author_name) + "" else - link_to h(object.author_name), link_options.merge({:controller => "user", :action => "view", :display_name => object.author_name}) + link_to h(object.author.display_name), link_options.merge({:controller => "user", :action => "view", :display_name => object.author.display_name}) end end end