FIX: Serialize flair group ID for preferences page (#13741)

FIX: Serialize flair group ID for preferences page (#13741)

Staff viewing the user preferences page of other users did not see the selected flair because that information was not serialized for them.

diff --git a/app/serializers/user_card_serializer.rb b/app/serializers/user_card_serializer.rb
index 617db6a..4ff67b9 100644
--- a/app/serializers/user_card_serializer.rb
+++ b/app/serializers/user_card_serializer.rb
@@ -59,6 +59,7 @@ class UserCardSerializer < BasicUserSerializer
              :recent_time_read,
              :primary_group_id,
              :primary_group_name,
+             :flair_group_id,
              :flair_name,
              :flair_url,
              :flair_bg_color,
diff --git a/spec/serializers/web_hook_user_serializer_spec.rb b/spec/serializers/web_hook_user_serializer_spec.rb
index 68bc42f..3b80fe8 100644
--- a/spec/serializers/web_hook_user_serializer_spec.rb
+++ b/spec/serializers/web_hook_user_serializer_spec.rb
@@ -42,6 +42,7 @@ RSpec.describe WebHookUserSerializer do
       :recent_time_read,
       :primary_group_id,
       :primary_group_name,
+      :flair_group_id,
       :flair_name,
       :flair_url,
       :flair_bg_color,

GitHub sha: 3d387d78916448f39bde04139fabd5dcda9d53be

This commit appears in #13741 which was approved by eviltrout. It was merged by nbianca.