0
0
Fork 0

Fix activity being rendered within activity due to caching (#11271)

Fix #11270
This commit is contained in:
Eugen Rochko 2019-07-10 00:43:30 +02:00 committed by GitHub
parent 4e92183227
commit 6172263a63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 0 additions and 10 deletions

View file

@ -1,8 +1,6 @@
# frozen_string_literal: true
class ActivityPub::ActivitySerializer < ActivityPub::Serializer
cache key: 'activity', expires_in: 3.minutes
attributes :id, :type, :actor, :published, :to, :cc
has_one :proper, key: :object, serializer: ActivityPub::NoteSerializer, if: :serialize_object?