Hydrate reactions on streaming API

This commit is contained in:
Essem 2024-02-09 17:39:07 -06:00
parent 2ab563e06c
commit 68aea0d2f5
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C

View file

@ -94,7 +94,7 @@ class StatusCacheHydrator
reactions = @status.reactions(account_id) reactions = @status.reactions(account_id)
ActiveModelSerializers::SerializableResource.new( ActiveModelSerializers::SerializableResource.new(
reactions, reactions,
each_serializer: REST::ReactionSerializer, each_serializer: REST::StatusReactionSerializer,
scope: account_id, # terrible scope: account_id, # terrible
scope_name: :current_user scope_name: :current_user
).as_json ).as_json