Remove thumbsdown slack ping (#421) [ci skip]
This commit is contained in:
parent
5927b13667
commit
f609cfc2fc
1 changed files with 2 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue