diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-02-10 22:49:59 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2023-02-10 22:49:59 +0100 |
commit | 87419f9307f54755af4604876ac149262ae3f0a6 (patch) | |
tree | 5b6d56d248379823660d70dc35c95e4c547f43ea /app/lib/activitypub/activity | |
parent | 4ceadc65b08cf4641c68b0b97b269f66c481ef50 (diff) | |
parent | 61c5dfb9295ea66c376c452a7ef7379e8c562416 (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/lib/activitypub/activity')
-rw-r--r-- | app/lib/activitypub/activity/create.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/lib/activitypub/activity/create.rb b/app/lib/activitypub/activity/create.rb index a4b1af9d8..bda6e9c8b 100644 --- a/app/lib/activitypub/activity/create.rb +++ b/app/lib/activitypub/activity/create.rb @@ -327,18 +327,18 @@ class ActivityPub::Activity::Create < ActivityPub::Activity def resolve_thread(status) return unless status.reply? && status.thread.nil? && Request.valid_url?(in_reply_to_uri) - ThreadResolveWorker.perform_async(status.id, in_reply_to_uri) + ThreadResolveWorker.perform_async(status.id, in_reply_to_uri, { 'request_id' => @options[:request_id]}) end def fetch_replies(status) collection = @object['replies'] return if collection.nil? - replies = ActivityPub::FetchRepliesService.new.call(status, collection, false) + replies = ActivityPub::FetchRepliesService.new.call(status, collection, allow_synchronous_requests: false, request_id: @options[:request_id]) return unless replies.nil? uri = value_or_id(collection) - ActivityPub::FetchRepliesWorker.perform_async(status.id, uri) unless uri.nil? + ActivityPub::FetchRepliesWorker.perform_async(status.id, uri, { 'request_id' => @options[:request_id]}) unless uri.nil? end def conversation_from_uri(uri) |