Fix #2352: return raw usernames in API instead of pretty names.

This commit is contained in:
evazion
2017-05-03 22:16:38 -05:00
parent b6e1958917
commit 7ade3b6831
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -109,6 +109,6 @@ class ArtistVersion < ActiveRecord::Base
end
def updater_name
User.id_to_name(updater_id).tr("_", " ")
User.id_to_name(updater_id)
end
end
+1 -1
View File
@@ -124,7 +124,7 @@ class Note < ActiveRecord::Base
end
def creator_name
User.id_to_name(creator_id).tr("_", " ")
User.id_to_name(creator_id)
end
def update_post
+1 -1
View File
@@ -1000,7 +1000,7 @@ class Post < ActiveRecord::Base
end
def uploader_name
User.id_to_name(uploader_id).tr("_", " ")
User.id_to_name(uploader_id)
end
end
+1 -1
View File
@@ -166,7 +166,7 @@ class WikiPage < ActiveRecord::Base
end
def creator_name
User.id_to_name(creator_id).tr("_", " ")
User.id_to_name(creator_id)
end
def category_name