about summary refs log tree commit diff
path: root/app/lib/entity_cache.rb
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2020-09-02 01:15:02 -0500
committerStarfall <us@starfall.systems>2020-09-02 01:15:02 -0500
commitfd0b806603dbd632d259d06af789c7195c7264dc (patch)
treea9ba1b09763ca15a96f927e361bb878b9833bc7d /app/lib/entity_cache.rb
parenta43c1d3f56c128c992f34b8e2b968de14e02ac48 (diff)
parentd967251fdc3826ad27d30e55258cfa4cdfd7c871 (diff)
Merge branch 'glitch' into main
Diffstat (limited to 'app/lib/entity_cache.rb')
-rw-r--r--app/lib/entity_cache.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/entity_cache.rb b/app/lib/entity_cache.rb
index afdbd70f2..89cbf8d2c 100644
--- a/app/lib/entity_cache.rb
+++ b/app/lib/entity_cache.rb
@@ -16,7 +16,7 @@ class EntityCache
   end
 
   def emoji(shortcodes, domain)
-    shortcodes   = [shortcodes] unless shortcodes.is_a?(Array)
+    shortcodes   = Array(shortcodes)
     cached       = Rails.cache.read_multi(*shortcodes.map { |shortcode| to_key(:emoji, shortcode, domain) })
     uncached_ids = []