about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2020-08-11 19:19:27 +0200
committerThibaut Girka <thib@sitedethib.com>2020-08-11 19:19:27 +0200
commit78fa15d08ff0b840b8b95f87e99a80a109110530 (patch)
treeab65860a80c213128c11734b396bf78954dd9003 /app/models
parent03712799e2cd51613c8e73cbd6379c8058fae466 (diff)
parentef057584fd2714d94666f9ffef4aa89147eda72c (diff)
Merge branch 'master' into glitch-soc/master
Conflicts:
- `streaming/index.js`:
  Upstream entirely refactored it.
  Ported our changes to upstream's refactor. Hopefuly.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/form/custom_emoji_batch.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/form/custom_emoji_batch.rb b/app/models/form/custom_emoji_batch.rb
index 6b7ea5355..f4fa84c10 100644
--- a/app/models/form/custom_emoji_batch.rb
+++ b/app/models/form/custom_emoji_batch.rb
@@ -30,7 +30,7 @@ class Form::CustomEmojiBatch
   private
 
   def custom_emojis
-    CustomEmoji.where(id: custom_emoji_ids)
+    @custom_emojis ||= CustomEmoji.where(id: custom_emoji_ids)
   end
 
   def update!