Skip to content

Commit 0deffcf

Browse files
Add plugin bot id check to reaction mapper (#925)
1 parent 5e8cd8a commit 0deffcf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/plugin/plugin.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,10 @@ func (p *Plugin) getPostPropsForReaction(reaction *model.Reaction) (org, repo st
321321
return org, repo, id, objectType, false
322322
}
323323

324+
if post.UserId != p.BotUserID {
325+
return org, repo, id, objectType, false
326+
}
327+
324328
// Getting the Github repository from notification post props
325329
repo, ok = post.GetProp(postPropGithubRepo).(string)
326330
if !ok || repo == "" {

0 commit comments

Comments
 (0)