]>
cat aescling's git repositories - mastodon.git/blob - app/workers/thread_resolve_worker.rb
1 # frozen_string_literal: true
3 class ThreadResolveWorker
4 include Sidekiq
::Worker
6 def perform(child_status_id
, parent_url
)
7 child_status
= Status
.find(child_status_id
)
8 parent_status
= FetchRemoteStatusService
.new
.call(parent_url
)
10 return if parent_status
.nil?
12 child_status
.thread
= parent_status
This page took 0.072372 seconds and 4 git commands to generate.