[Done] Adjust abuse reports (#540)

* Fix bad formatting of links

* Change spam bot to post in potential-spam

* Add internal report link to Slack message
This commit is contained in:
Andy Zhao 2018-07-05 11:16:11 -04:00 committed by Ben Halpern
parent fcac6575d1
commit 749ffabbe7
2 changed files with 3 additions and 2 deletions

View file

@ -43,7 +43,8 @@ class FeedbackMessagesController < ApplicationController
<<~HEREDOC
#{generate_user_detail}
Category: #{feedback_message_params[:category]}
*_Reported URL: #{feedback_message_params[:reported_url]}_*
Internal Report: https://dev.to/internal/reports
*_ Reported URL: #{feedback_message_params[:reported_url]} _*
-----
*Message:* #{feedback_message_params[:message]}
HEREDOC

View file

@ -122,7 +122,7 @@ class AuthorizationService
def flag_spam_user(user)
SlackBot.ping(
"Potential spam user! https://dev.to/#{user.username}",
channel: "abuse-reports",
channel: "potential-spam",
username: "spam_account_checker_bot",
icon_emoji: ":exclamation:",
)