Browse Source

I still cant spell

Kylie Jo Swistak 5 years ago
parent
commit
be7fdfcfc3
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/app_forms/character_app.rb
  2. 1 1
      app/controllers/image_controller.rb

+ 1 - 1
app/app_forms/character_app.rb

@@ -7,7 +7,7 @@ class CharacterApplication < ApplicationForm
       maj = majority(event)
 
       reactions = event.message.reactions
-      if reactions[Emoji::Y]&.count.to_i > 1 && star(event)
+      if reactions[Emoji::Y]&.count.to_i > maj && star(event)
         approve(event)
       elsif reactions[Emoji::N]&.count.to_i > maj
         deny(event)

+ 1 - 1
app/controllers/image_controller.rb

@@ -9,7 +9,7 @@ class ImageController
         char_id: char_id,
         url: url,
         category: rating,
-        keword: 'Default'
+        keyword: 'Default'
       )
     end
   end