diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-07-21 22:32:16 +0200 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-20 23:45:28 -0600 |
commit | b6c6840ba337ed77d4488dd013098df30100b74f (patch) | |
tree | d131f33a8710bcfd68b77408df5554fb0e78e92d /app/controllers/accounts_controller.rb | |
parent | 49ad6d338197eb8cf6893ea6dd6578a6a1a99295 (diff) |
port tootsuite#11333 to monsterfork: Add (back) rails-level JSON caching
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 a942ff428..9bd191f3c 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -59,7 +59,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 |