digests: Ensure that the teaser_data can be JSON-serialized.

Leaving this as a set means that it fails in zerver.lib.send_email
when serializing into a ScheduledEmail object.
This commit is contained in:
Alex Vandiver
2020-11-30 21:12:49 -08:00
committed by Tim Abbott
parent 7c849fa940
commit 438d2aa632

View File

@@ -65,7 +65,7 @@ class DigestTopic:
self.sample_messages,
)
return {
"participants": self.human_senders,
"participants": sorted(self.human_senders),
"count": teaser_count,
"first_few_messages": first_few_messages,
}