Skip to content

Commit 1946a96

Browse files
MeMyselfMiraishaeespringBigSpaceships
authored
Prevent people from pinging @channel (#387)
* Prevent people from pinging @channel by submitting a Major Project with an @ sign * Oh wait, it's not an @ sign * replace --------- Co-authored-by: Alexander Day <55056986+AD417@users.noreply.github.com> Co-authored-by: Shaela Spring <shaeespring@gmail.com> Co-authored-by: Noah Hanford <bigspaceships56@gmail.com>
1 parent 545e2e3 commit 1946a96

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

conditional/blueprints/major_project_submission.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ def submit_major_project(user_dict=None):
7272
return jsonify({"success": False}), 400
7373
project = MajorProject(user_dict["username"], name, description)
7474

75+
# Don't you dare try pinging @channel
76+
name = name.replace("<!", "<! ")
77+
7578
username = user_dict["username"]
7679
send_slack_ping(
7780
{

0 commit comments

Comments
 (0)