From 2aa51922ba6a0ea2f8644277baa74fc8f34ab95a Mon Sep 17 00:00:00 2001 From: Gusted Date: Sun, 17 Sep 2023 19:32:02 +0200 Subject: [PATCH] [MODERATION] Fix unblock action (squash) - Pass the whole context instead of only giving pieces. - This fixes CSRF not correctly being inserted into the unblock buttons. --- templates/org/settings/blocked_users.tmpl | 2 +- templates/user/settings/blocked_users.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/org/settings/blocked_users.tmpl b/templates/org/settings/blocked_users.tmpl index 4133a43c69..78c9025a83 100644 --- a/templates/org/settings/blocked_users.tmpl +++ b/templates/org/settings/blocked_users.tmpl @@ -15,7 +15,7 @@
- {{template "shared/blocked_users_list" dict "locale" .locale "BlockedUsers" .BlockedUsers}} + {{template "shared/blocked_users_list" .}}
{{template "org/settings/layout_footer" .}} diff --git a/templates/user/settings/blocked_users.tmpl b/templates/user/settings/blocked_users.tmpl index b7a35311c5..07a371c5fb 100644 --- a/templates/user/settings/blocked_users.tmpl +++ b/templates/user/settings/blocked_users.tmpl @@ -4,7 +4,7 @@ {{.locale.Tr "settings.blocked_users"}}
- {{template "shared/blocked_users_list" dict "locale" .locale "BlockedUsers" .BlockedUsers}} + {{template "shared/blocked_users_list" .}}
{{template "user/settings/layout_footer" .}}