From ea5767e935e71dbab983c6a729cb42c3de7e46e8 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 5 Jun 2019 12:44:56 -0400 Subject: [PATCH] FIX: Broken serializer spec with no payload --- app/serializers/reviewable_queued_post_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serializers/reviewable_queued_post_serializer.rb b/app/serializers/reviewable_queued_post_serializer.rb index dbc06ac9a6f..ebdd4d0c683 100644 --- a/app/serializers/reviewable_queued_post_serializer.rb +++ b/app/serializers/reviewable_queued_post_serializer.rb @@ -24,7 +24,7 @@ class ReviewableQueuedPostSerializer < ReviewableSerializer end def include_reply_to_post_number? - object.payload['reply_to_post_number'].present? + object.payload.present? && object.payload['reply_to_post_number'].present? end end