# Block?
block: bool = True
+ # Notify
+ notify: bool = True
+
class CloseReport(pydantic.BaseModel):
# Accept?
reported_by = user,
comment = report.comment,
block = report.block,
+ notify = report.notify,
)
@router.get("/{id}")
return self.backend.db.fetch(stmt)
- async def create(self, name, reported_by, comment=None, **kwargs):
+ async def create(self, name, reported_by, comment=None, notify=True, **kwargs):
"""
Creates a new report
"""
)
# Send a notification to the reporter
- await report._send_opening_notification()
+ if notify:
+ await report._send_opening_notification()
return report