Send abuse reports to admins
This commit is contained in:
parent
fbbb7651b1
commit
58d819a719
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ class PhotoReportView(LoginRequiredMixin, DetailView):
|
||||||
url = request.build_absolute_uri(url)
|
url = request.build_absolute_uri(url)
|
||||||
|
|
||||||
# Send mail to managers
|
# Send mail to managers
|
||||||
mail_managers(
|
mail_admins(
|
||||||
subject=f"Abuse report for photo id {photo.pk}",
|
subject=f"Abuse report for photo id {photo.pk}",
|
||||||
message=f"{self.request.user.username} reported an abuse for `{photo.title}`: {url}#lg=1&slide={photo.pk}",
|
message=f"{self.request.user.username} reported an abuse for `{photo.title}`: {url}#lg=1&slide={photo.pk}",
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue