Filter nicknames for notices

This commit is contained in:
Mark Veidemanis 2022-08-13 00:05:00 +01:00
parent 52f3e8f1b2
commit 73792d724d
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ class DrilldownContextModal(APIView):
if "mtype" not in query_params: if "mtype" not in query_params:
query_params["mtype"] = None query_params["mtype"] = None
if request.user.is_superuser: if request.user.is_superuser:
if query_params["type"] == "query": if query_params["type"] in ["query", "notice"]:
print("BOT NICK", query_params["channel"]) print("BOT NICK", query_params["channel"])
print("QUERY NICK", query_params["nick"]) print("QUERY NICK", query_params["nick"])
nicks = [query_params["channel"], query_params["nick"]] nicks = [query_params["channel"], query_params["nick"]]