From 100cef91866f75b1d744890c6856ac68f60cb4c8 Mon Sep 17 00:00:00 2001 From: Mateusz Mandera Date: Wed, 10 Jan 2024 15:50:30 +0100 Subject: [PATCH] templates: Move remote_realm_server_mismatch_error.html to zerver. This is rendered by regular self-hosted servers, so doesn't belong in zilencer. --- .../remote_realm_server_mismatch_error.html | 0 zerver/views/push_notifications.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename templates/{zilencer => zerver}/remote_realm_server_mismatch_error.html (100%) diff --git a/templates/zilencer/remote_realm_server_mismatch_error.html b/templates/zerver/remote_realm_server_mismatch_error.html similarity index 100% rename from templates/zilencer/remote_realm_server_mismatch_error.html rename to templates/zerver/remote_realm_server_mismatch_error.html diff --git a/zerver/views/push_notifications.py b/zerver/views/push_notifications.py index f18a3ae264..5283a0ed74 100644 --- a/zerver/views/push_notifications.py +++ b/zerver/views/push_notifications.py @@ -189,7 +189,7 @@ def self_hosting_auth_redirect_endpoint( except ResourceNotFoundError: return render(request, "404.html", status=404) except RemoteRealmServerMismatchError: - return render(request, "zilencer/remote_realm_server_mismatch_error.html", status=403) + return render(request, "zerver/remote_realm_server_mismatch_error.html", status=403) return HttpResponseRedirect(redirect_url)