From 90189b98ff8f76a3a161a8a9f3115d814c763692 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 17 Nov 2019 22:44:15 -0600 Subject: Always skip `Formatter` cache when serializing ActivityPub representations of posts and accounts. --- app/serializers/activitypub/actor_serializer.rb | 2 +- app/serializers/activitypub/note_serializer.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/serializers/activitypub/actor_serializer.rb b/app/serializers/activitypub/actor_serializer.rb index 7ea28afd5..485d9d78f 100644 --- a/app/serializers/activitypub/actor_serializer.rb +++ b/app/serializers/activitypub/actor_serializer.rb @@ -82,7 +82,7 @@ class ActivityPub::ActorSerializer < ActivityPub::Serializer end def summary - Formatter.instance.simplified_format(object) + Formatter.instance.simplified_format(object, skip_cache: true) end def icon diff --git a/app/serializers/activitypub/note_serializer.rb b/app/serializers/activitypub/note_serializer.rb index ff39c97c4..fe943a472 100644 --- a/app/serializers/activitypub/note_serializer.rb +++ b/app/serializers/activitypub/note_serializer.rb @@ -38,7 +38,7 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer end def content - Formatter.instance.format(object) + Formatter.instance.format(object, skip_cache: true) end def source @@ -48,7 +48,7 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer end def content_map - { object.language => Formatter.instance.format(object) } + { object.language => Formatter.instance.format(object, skip_cache: true) } end def replies -- cgit