about summary refs log tree commit diff
path: root/app/controllers/emojis_controller.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-07-21 22:32:16 +0200
committerGitHub <noreply@github.com>2019-07-21 22:32:16 +0200
commitc669bb42baa213dde27d831bb34f0ce14cfb29dc (patch)
treeb609b21505c5f890b1200092de96b1bcc38b957e /app/controllers/emojis_controller.rb
parent59fd622adc18cb094146f7cda1025782d505404e (diff)
Add (back) rails-level JSON caching (#11333)
Diffstat (limited to 'app/controllers/emojis_controller.rb')
-rw-r--r--app/controllers/emojis_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/emojis_controller.rb b/app/controllers/emojis_controller.rb
index fe4c19cad..41f1e1c5c 100644
--- a/app/controllers/emojis_controller.rb
+++ b/app/controllers/emojis_controller.rb
@@ -8,7 +8,7 @@ class EmojisController < ApplicationController
     respond_to do |format|
       format.json do
         expires_in 3.minutes, public: true
-        render json: @emoji, content_type: 'application/activity+json', serializer: ActivityPub::EmojiSerializer, adapter: ActivityPub::Adapter
+        render_with_cache json: @emoji, content_type: 'application/activity+json', serializer: ActivityPub::EmojiSerializer, adapter: ActivityPub::Adapter
       end
     end
   end