Temporarily fix duplicate vote checks with weird emoji variants, will make a better system later

This commit is contained in:
Sebastian Cabrera 2023-08-30 23:57:43 -04:00
parent af03cdb4e3
commit d55a8872cf

View file

@ -147,7 +147,7 @@ func processIssueCommentEvent(event *github.IssueCommentEvent) {
commentAuthor := comment.GetUser().GetLogin()
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]
if !exists {
approvals[commentAuthor] = 1