Fix when report ap message does not have content field (#689)
This commit is contained in:
parent
2f4daa02bd
commit
f86f3a49e4
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue