Temporarily fix duplicate vote checks with weird emoji variants, will make a better system later
This commit is contained in:
parent
af03cdb4e3
commit
d55a8872cf
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ func processIssueCommentEvent(event *github.IssueCommentEvent) {
|
||||||
commentAuthor := comment.GetUser().GetLogin()
|
commentAuthor := comment.GetUser().GetLogin()
|
||||||
commentBody := comment.GetBody()
|
commentBody := comment.GetBody()
|
||||||
|
|
||||||
if !strings.Contains(userType, "bot") && strings.Contains(commentBody, "+1") {
|
if !strings.Contains(userType, "bot") && (strings.Contains(commentBody, "+1") || strings.Contains(commentBody, "👍")) {
|
||||||
_, exists := approvals[commentAuthor]
|
_, exists := approvals[commentAuthor]
|
||||||
if !exists {
|
if !exists {
|
||||||
approvals[commentAuthor] = 1
|
approvals[commentAuthor] = 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue