fix when report ap message does not have content field

This commit is contained in:
Henri Dickson 2024-01-08 18:48:15 -05:00
parent 2f4daa02bd
commit ee54b601a2

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):