From 5f04809ccf6d2f48a2c60d792b1c56c0e6933906 Mon Sep 17 00:00:00 2001 From: stephanie-warmenhoven Date: Thu, 23 Apr 2020 15:26:07 -0700 Subject: [PATCH] [#1713] Made moment_keywords unique --- app/services/moment_keywords.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/moment_keywords.rb b/app/services/moment_keywords.rb index 72766f7b98..a376a4f990 100644 --- a/app/services/moment_keywords.rb +++ b/app/services/moment_keywords.rb @@ -15,7 +15,7 @@ def call extract(@moment.fix)) remove_special_chars downcase_keywords - @moment_keywords = @moment_keywords.join(' ') + @moment_keywords = @moment_keywords.uniq.join(' ') end private