about summary refs log tree commit diff
path: root/app/controllers/accounts_controller.rb
diff options
context:
space:
mode:
authorabcang <abcang1015@gmail.com>2018-08-19 22:52:38 +0900
committerEugen Rochko <eugen@zeonfederated.com>2018-08-19 15:52:38 +0200
commit9e75aa30cd229c45fd95e00a93416221c83a4fd7 (patch)
treea0a5d6583f662e60e09466d2fb093bcbdbbfad56 /app/controllers/accounts_controller.rb
parent0d1d9b9a33149adbcdd063177eae9944462c91ff (diff)
Unuse ActiveRecord::Base#cache_key (#8185)
* Unuse ActiveRecord::Base#cache_key

* Enable cache_versioning

* Call cache_collection
Diffstat (limited to 'app/controllers/accounts_controller.rb')
-rw-r--r--app/controllers/accounts_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb
index e5a7301ee..f788a9078 100644
--- a/app/controllers/accounts_controller.rb
+++ b/app/controllers/accounts_controller.rb
@@ -42,7 +42,7 @@ class AccountsController < ApplicationController
       format.json do
         skip_session!
 
-        render_cached_json(['activitypub', 'actor', @account.cache_key], content_type: 'application/activity+json') do
+        render_cached_json(['activitypub', 'actor', @account], content_type: 'application/activity+json') do
           ActiveModelSerializers::SerializableResource.new(@account, serializer: ActivityPub::ActorSerializer, adapter: ActivityPub::Adapter)
         end
       end