diff --git a/extensions/hooks/talk_notify.py b/extensions/hooks/talk_notify.py index c58e271..4d1e4a9 100644 --- a/extensions/hooks/talk_notify.py +++ b/extensions/hooks/talk_notify.py @@ -83,8 +83,8 @@ def talk_notify_hook(context: Context, change: dict): author=author, author_url=author_url, article=sanitize_to_markdown(change["title"]).replace("\\:", ":"), edit_link=edit_link, comment=parsed_comment, edit_size=edit_size, sign=sign, bold=bold) webhook_list = talk_notify.get("default", []) - if change["ns"] in talk_notify.get("namespace", {}): - webhook_list = talk_notify.get("namespace", {}).get(change["ns"], webhook_list) + if str(change["ns"]) in talk_notify.get("namespace", {}): + webhook_list = talk_notify.get("namespace", {}).get(str(change["ns"]), webhook_list) if change["title"] in talk_notify.get("pages", {}): webhook_list = talk_notify.get("pages", {}).get(change["title"], webhook_list) for webhook in webhook_list: