diff --git a/app/portal/webhook.py b/app/portal/webhook.py index ad8c8ce..e0e1e11 100644 --- a/app/portal/webhook.py +++ b/app/portal/webhook.py @@ -12,12 +12,14 @@ from app.portal.util import response_404, view_lifecycle bp = Blueprint("webhook", __name__) + @bp.app_template_filter("webhook_format_name") def webhook_format_name(s: str) -> str: if s == "telegram": return "Telegram" if s == "matrix": return "Matrix" + return "Unknown" class NewWebhookForm(FlaskForm):