mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 07:02:46 +08:00
FIX: Broken serializer spec with no payload
This commit is contained in:
parent
f1d547c301
commit
ea5767e935
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user