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/accounts_controller.rb | |
parent | 59fd622adc18cb094146f7cda1025782d505404e (diff) |
Add (back) rails-level JSON caching (#11333)
Diffstat (limited to 'app/controllers/accounts_controller.rb')
-rw-r--r-- | app/controllers/accounts_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index fc913c2ec..058a00a21 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -41,7 +41,7 @@ class AccountsController < ApplicationController format.json do expires_in 3.minutes, public: !(authorized_fetch_mode? && signed_request_account.present?) - render json: @account, content_type: 'application/activity+json', serializer: ActivityPub::ActorSerializer, adapter: ActivityPub::Adapter, fields: restrict_fields_to + render_with_cache json: @account, content_type: 'application/activity+json', serializer: ActivityPub::ActorSerializer, adapter: ActivityPub::Adapter, fields: restrict_fields_to end end end |