DEV: Update plugin for upcoming core change

DEV: Update plugin for upcoming core change

https://github.com/discourse/discourse/pull/9442

diff --git a/plugin.rb b/plugin.rb
index f9e10ea..4ae720a 100644
--- a/plugin.rb
+++ b/plugin.rb
@@ -70,9 +70,9 @@ after_initialize do
   end
 
   require_dependency 'post_serializer'
-  require_dependency 'user_serializer'
+  require_dependency 'user_card_serializer'
 
-  class ::UserSerializer
+  class ::UserCardSerializer
     attributes :date_of_birth
 
     def include_date_of_birth?
diff --git a/test/javascripts/acceptance/cakeday-test.js.es6 b/test/javascripts/acceptance/cakeday-test.js.es6
index 00468f6..17649c0 100644
--- a/test/javascripts/acceptance/cakeday-test.js.es6
+++ b/test/javascripts/acceptance/cakeday-test.js.es6
@@ -6,11 +6,11 @@ acceptance("Cakeday", {
     cakeday_enabled: true,
     cakeday_emoji: "cake",
     cakeday_birthday_enabled: true,
-    cakeday_birthday_emoji: "birthday"
+    cakeday_birthday_emoji: "birthday",
   },
 
   pretend(server) {
-    const response = object => {
+    const response = (object) => {
       return [200, { "Content-Type": "application/json" }, object];
     };
 
@@ -56,7 +56,7 @@ acceptance("Cakeday", {
                 { id: 4, can_act: true },
                 { id: 5, hidden: true, can_act: true },
                 { id: 7, can_act: true },
-                { id: 8, can_act: true }
+                { id: 8, can_act: true },
               ],
               moderator: false,
               admin: true,
@@ -71,10 +71,10 @@ acceptance("Cakeday", {
               can_view_edit_history: true,
               wiki: false,
               user_created_at: moment().subtract(1, "year"),
-              user_date_of_birth: moment().format("YYYY-MM-DD")
-            }
+              user_date_of_birth: moment().format("YYYY-MM-DD"),
+            },
           ],
-          stream: [14]
+          stream: [14],
         },
         timeline_lookup: [[1, 0]],
         id: 11,
@@ -114,13 +114,13 @@ acceptance("Cakeday", {
             id: 1,
             username: "tgx",
             avatar_template:
-              "/letter_avatar_proxy/v2/letter/t/ecae2f/{size}.png"
+              "/letter_avatar_proxy/v2/letter/t/ecae2f/{size}.png",
           },
           last_poster: {
             id: 1,
             username: "tgx",
             avatar_template:
-              "/letter_avatar_proxy/v2/letter/t/ecae2f/{size}.png"
+              "/letter_avatar_proxy/v2/letter/t/ecae2f/{size}.png",
           },
           participants: [
             {
@@ -128,8 +128,8 @@ acceptance("Cakeday", {
               username: "tgx",
               avatar_template:
                 "/letter_avatar_proxy/v2/letter/t/ecae2f/{size}.png",
-              post_count: 1
-            }
+              post_count: 1,
+            },
           ],
           suggested_topics: [
             {
@@ -167,11 +167,11 @@ acceptance("Cakeday", {
                     id: -1,
                     username: "system",
                     avatar_template:
-                      "/letter_avatar_proxy/v2/letter/s/bcef8e/{size}.png"
-                  }
-                }
-              ]
-            }
+                      "/letter_avatar_proxy/v2/letter/s/bcef8e/{size}.png",
+                  },
+                },
+              ],
+            },
           ],
           notification_level: 3,
           notifications_reason_id: 1,
@@ -183,7 +183,7 @@ acceptance("Cakeday", {
           can_invite_to: true,
           can_create_post: true,
           can_reply_as_new_topic: true,
-          can_flag_topic: true
+          can_flag_topic: true,
         },
         highest_post_number: 1,
         last_read_post_number: 1,
@@ -193,10 +193,10 @@ acceptance("Cakeday", {
         actions_summary: [
           { id: 4, count: 0, hidden: false, can_act: true },
           { id: 7, count: 0, hidden: false, can_act: true },
-          { id: 8, count: 0, hidden: false, can_act: true }
+          { id: 8, count: 0, hidden: false, can_act: true },
         ],
         chunk_size: 20,
-        bookmarked: false
+        bookmarked: false,
       });
     });
 
@@ -204,14 +204,23 @@ acceptance("Cakeday", {
       return response({
         user: {
           date_of_birth: moment().format("YYYY-MM-DD"),
-          created_at: moment().subtract(1, "year")
-        }
+          created_at: moment().subtract(1, "year"),
+        },
+      });
+    });
+
+    server.get("/u/tgx/card.json", () => {
+      return response({
+        user: {
+          date_of_birth: moment().format("YYYY-MM-DD"),
+          created_at: moment().subtract(1, "year"),
+        },
       });
     });
-  }
+  },
 });
 
-test("Anniversary emoji", assert => {
+test("Anniversary emoji", (assert) => {
   visit("/t/some-really-interesting-topic/11");
 
   andThen(() => {

GitHub sha: 82cff576

Commit was reverted already.