link_to_user: remove unused raw_name option.

This commit is contained in:
evazion
2020-04-30 17:46:35 -05:00
parent 2cbe4d3672
commit 8b5763652d

View File

@@ -183,7 +183,7 @@ module ApplicationHelper
to_sentence(links, **options)
end
def link_to_user(user, options = {})
def link_to_user(user)
return "anonymous" if user.blank?
user_class = "user-#{user.level_string.downcase}"
@@ -191,12 +191,7 @@ module ApplicationHelper
user_class += " user-post-uploader" if user.can_upload_free?
user_class += " user-banned" if user.is_banned?
user_class += " with-style" if CurrentUser.user.style_usernames?
if options[:raw_name]
name = user.name
else
name = user.pretty_name
end
link_to(name, user_path(user), :class => user_class)
link_to(user.pretty_name, user_path(user), :class => user_class)
end
def mod_link_to_user(user, positive_or_negative)