0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-08 17:53:55 +08:00
discourse/app/serializers/inactive_user_serializer.rb
Bianca Nenciu 78022e7a5f
FEATURE: Show user cards for inactive users (#21387)
It used to return 404 which made the user card render and then quickly disappear.
2023-05-15 21:45:26 +03:00

9 lines
151 B
Ruby
Vendored

# frozen_string_literal: true
class InactiveUserSerializer < BasicUserSerializer
attributes :inactive
def inactive
!object.active?
end
end