Remove thumbsdown slack ping (#421) [ci skip]

This commit is contained in:
Ben Halpern 2018-08-21 14:09:25 -04:00 committed by Mac Siri
parent 5927b13667
commit f609cfc2fc

View file

@ -1,7 +1,7 @@
class ReactionObserver < ActiveRecord::Observer
def after_create(reaction)
if reaction.points.negative?
emoji = reaction.category == "thumbsdown" ? ":thumbsdown:" : ":cry:"
if reaction.category == "vomit"
emoji = ":cry:"
SlackBot.delay.ping(
"#{reaction.user.name} (https://dev.to#{reaction.user.path}) \nreacted with a #{reaction.category} on\nhttps://dev.to#{reaction.reactable.path}",
channel: "abuse-reports",