Fix #5178: Add received bans to user includes.
This commit is contained in:
@@ -687,7 +687,7 @@ class User < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.available_includes
|
def self.available_includes
|
||||||
[:inviter]
|
[:inviter, :bans]
|
||||||
end
|
end
|
||||||
|
|
||||||
memoize :name_errors
|
memoize :name_errors
|
||||||
|
|||||||
Reference in New Issue
Block a user