Skip to content

Commit

Permalink
Fix replies collection being cached improperly
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored and atsu1125 committed Dec 2, 2024
1 parent 4fd4350 commit 749720a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/activitypub/replies_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ActivityPub::RepliesController < ActivityPub::BaseController
before_action :set_replies

def index
expires_in 0, public: public_fetch_mode?
expires_in 0, public: @status.distributable? && public_fetch_mode?
render json: replies_collection_presenter, serializer: ActivityPub::CollectionSerializer, adapter: ActivityPub::Adapter, content_type: 'application/activity+json', skip_activities: true
end

Expand Down

0 comments on commit 749720a

Please sign in to comment.