diff options
author | ThibG <thib@sitedethib.com> | 2019-06-05 14:02:59 +0200 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-11-19 16:37:33 -0600 |
commit | 176b48c6dc2e67b935996ef2ada1e71fb36f9f87 (patch) | |
tree | 7b22cce24366be8f4faec9669e8d5987d4ed8408 /app/controllers/accounts_controller.rb | |
parent | 86d8fba8556804010745fe93ff57bc6e2657dafa (diff) |
Cleanup various controllers (#10972)
* Remove skip_session! as it is not supported in Rails 5 * Minor cleanup in StreamEntriesController * Remove redundant mark_cacheable! calls
Diffstat (limited to 'app/controllers/accounts_controller.rb')
-rw-r--r-- | app/controllers/accounts_controller.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index f01bfba93..e91013025 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -40,8 +40,6 @@ class AccountsController < ApplicationController end format.json do - mark_cacheable! - render_cached_json(['activitypub', 'actor', @account], content_type: 'application/activity+json') do ActiveModelSerializers::SerializableResource.new(@account, serializer: ActivityPub::ActorSerializer, adapter: ActivityPub::Adapter) end |