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
1 changed files with 1 additions and 1 deletions

View File

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