Fix when report ap message does not have content field (#689)

This commit is contained in:
Henri Dickson 2024-01-08 21:48:21 -05:00 committed by GitHub
parent 2f4daa02bd
commit f86f3a49e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,7 +172,7 @@ class Report(StatorModel):
subject_post=subject_post,
source_domain=Domain.get_remote_domain(domain_id),
type="remote",
complaint=data.get("content"),
complaint=str(data.get("content", "")),
)
def to_ap(self):