diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-07-21 22:32:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-21 22:32:16 +0200 |
commit | c669bb42baa213dde27d831bb34f0ce14cfb29dc (patch) | |
tree | b609b21505c5f890b1200092de96b1bcc38b957e /app/controllers/emojis_controller.rb | |
parent | 59fd622adc18cb094146f7cda1025782d505404e (diff) |
Add (back) rails-level JSON caching (#11333)
Diffstat (limited to 'app/controllers/emojis_controller.rb')
-rw-r--r-- | app/controllers/emojis_controller.rb | 2 |
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 |