A platform for community discussion. Free, open, simple.
FIX: Broken serializer spec with no payload
Robin Wardea5767e935e7
diff --git a/app/serializers/reviewable_queued_post_serializer.rb b/app/serializers/reviewable_queued_post_serializer.rbindex 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 < ReviewableSerializerenddef include_reply_to_post_number?- object.payload['reply_to_post_number'].present?+ object.payload.present? && object.payload['reply_to_post_number'].present?endend