Skip to content

Commit

Permalink
Fix when report ap message does not have content field (jointakahe#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
alphatownsman authored Jan 9, 2024
1 parent 2f4daa0 commit f86f3a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion users/models/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def handle_ap(cls, data):
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):
Expand Down

0 comments on commit f86f3a4

Please sign in to comment.