FIX: Use preloaded post custom field (#60)

FIX: Use preloaded post custom field (#60)

A follow-up to #59.

diff --git a/plugin.rb b/plugin.rb
index 562e772..1fd4a93 100644
--- a/plugin.rb
+++ b/plugin.rb
@@ -145,11 +145,11 @@ after_initialize do
   end
 
   add_to_serializer(:post, :category_expert_approved_group) do
-    object.custom_fields[CategoryExperts::POST_APPROVED_GROUP_NAME]
+    post_custom_fields[CategoryExperts::POST_APPROVED_GROUP_NAME]
   end
 
   add_to_serializer(:post, :needs_category_expert_approval) do
-    object.custom_fields[CategoryExperts::POST_PENDING_EXPERT_APPROVAL]
+    post_custom_fields[CategoryExperts::POST_PENDING_EXPERT_APPROVAL]
   end
 
   add_to_serializer(:post, :can_manage_category_expert_posts) do

GitHub sha: 864e8f7c5098c329582482c77a31e141dfb12805

This commit appears in #60 which was approved by martin. It was merged by CvX.