about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-11-17 22:44:15 -0600
committermultiple creatures <dev@multiple-creature.party>2019-11-18 02:19:09 -0600
commit90189b98ff8f76a3a161a8a9f3115d814c763692 (patch)
tree0cbb250a1be9dfe75a8668df76be2abd5e36707c
parent5c535c021f6572528ca1326204ebc0500c96cd1f (diff)
Always skip `Formatter` cache when serializing ActivityPub representations of posts and accounts.
-rw-r--r--app/serializers/activitypub/actor_serializer.rb2
-rw-r--r--app/serializers/activitypub/note_serializer.rb4
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