From 91499bef38c92ce236da0fd24e8103248a20c63f Mon Sep 17 00:00:00 2001 From: Weather Date: Sat, 2 May 2026 18:28:34 -0400 Subject: [PATCH] fix: Removes conflicting check --- src/core/slack.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/core/slack.py b/src/core/slack.py index 37196d7..e95243a 100644 --- a/src/core/slack.py +++ b/src/core/slack.py @@ -208,17 +208,12 @@ async def process_slack_events(request: Request) -> dict[str, str]: ) return ({"status": "success"}, 200) - # Challenge from Bot Authentication if request.headers.get("content-type") == "application/json": if body.get("type") == "url_verification": logger.info("SLACK EVENT: Was a challenge!") return {"challenge": body.get("challenge")} - if not body: - logger.debug("SLACK EVENT: Was a challenge, with no body") - return {"challenge": body.get("challenge")} - event: dict = body.get("event", {}) if event.get("subtype", None) is not None: @@ -272,7 +267,7 @@ async def process_slack_message_actions(payload: str): user_id = form_json.get("user", {}).get("id") username: str = await get_username(user_id) - username = username[:40] + username = username[:40] # Only get the first 40 characters so it fits on a single line add_announcement(message_object, username)