diff --git a/lib/gollum/wiki.rb b/lib/gollum/wiki.rb index 89789682..4e70f547 100644 --- a/lib/gollum/wiki.rb +++ b/lib/gollum/wiki.rb @@ -203,7 +203,9 @@ module Gollum @collapse_tree = options.fetch :collapse_tree, false @css = options.fetch :css, false @h1_title = options.fetch :h1_title, false - @user_icons = options.fetch :user_icons, 'none' + + @user_icons = ['gravatar', 'identicon'].include?( options[:user_icons] ) ? + options[:user_icons] : 'none' end # Public: check whether the wiki's git repo exists on the filesystem.