about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-02-10 14:57:10 +0100
committerGitHub <noreply@github.com>2022-02-10 14:57:10 +0100
commitda91b18a8b2424f26546eae19ad68473969961c0 (patch)
tree84e65144e1a25d373c6ddf9dc12e993cf136bb58 /app
parent63854bee6c387fc82b41f1a8eea968790541cf29 (diff)
Fix NoMethodError in StatusUpdateDistributionWorker (#17499)
* Add tests

* Fix NoMethodError in StatusUpdateDistributionWorker

* Fix tests
Diffstat (limited to 'app')
-rw-r--r--app/workers/activitypub/status_update_distribution_worker.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/workers/activitypub/status_update_distribution_worker.rb b/app/workers/activitypub/status_update_distribution_worker.rb
index 261aaa0cc..a79ede2bf 100644
--- a/app/workers/activitypub/status_update_distribution_worker.rb
+++ b/app/workers/activitypub/status_update_distribution_worker.rb
@@ -6,6 +6,7 @@ class ActivityPub::StatusUpdateDistributionWorker < ActivityPub::DistributionWor
   def perform(status_id, options = {})
     @options = options.with_indifferent_access
     @status  = Status.find(status_id)
+    @account = @status.account
 
     distribute!
   rescue ActiveRecord::RecordNotFound