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
|
class ReactionObserver < ActiveRecord::Observer
|
||||||
def after_create(reaction)
|
def after_create(reaction)
|
||||||
if reaction.points.negative?
|
if reaction.category == "vomit"
|
||||||
emoji = reaction.category == "thumbsdown" ? ":thumbsdown:" : ":cry:"
|
emoji = ":cry:"
|
||||||
SlackBot.delay.ping(
|
SlackBot.delay.ping(
|
||||||
"#{reaction.user.name} (https://dev.to#{reaction.user.path}) \nreacted with a #{reaction.category} on\nhttps://dev.to#{reaction.reactable.path}",
|
"#{reaction.user.name} (https://dev.to#{reaction.user.path}) \nreacted with a #{reaction.category} on\nhttps://dev.to#{reaction.reactable.path}",
|
||||||
channel: "abuse-reports",
|
channel: "abuse-reports",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue