Skip to content
This repository
Browse code

display username

  • Loading branch information...
commit a192ea307bcda2175f1dd3eda5666aa8a4e471a4 1 parent f232c67
Christoph Thiel cthiel authored

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +5 1 lib/irwi/helpers/wiki_pages_helper.rb
6 lib/irwi/helpers/wiki_pages_helper.rb
@@ -48,7 +48,11 @@ def wiki_diff( old_text, new_text )
48 48 def wiki_user( user )
49 49 return ("<" + wt("Unknown") + ">").html_safe unless user
50 50
51   - "User##{user.id}"
  51 + if user.respond_to?(:name)
  52 + user.name
  53 + else
  54 + "User##{user.id}"
  55 + end
52 56 end
53 57
54 58 def wiki_linkify( str )

0 comments on commit a192ea3

Please sign in to comment.
Something went wrong with that request. Please try again.