about summary refs log tree commit diff
path: root/app/services/fan_out_on_write_service.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-01-26 20:53:50 +0100
committerGitHub <noreply@github.com>2022-01-26 20:53:50 +0100
commit166cc5b89d60f8e2e1f748df86ff8a9003a4876e (patch)
tree972f13b94c1fa0934337507f37ff6f04aa9fa86b /app/services/fan_out_on_write_service.rb
parent10188c7db77cd90382d8c7476f0c3f97f92fc4be (diff)
Fix local distribution of edited statuses (#17380)
Because `FanOutOnWriteService#update?` was broken, edits were considered as new
toots and a regular `update` payload was sent.
Diffstat (limited to 'app/services/fan_out_on_write_service.rb')
-rw-r--r--app/services/fan_out_on_write_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/fan_out_on_write_service.rb b/app/services/fan_out_on_write_service.rb
index f62f78a79..3a2e82b6d 100644
--- a/app/services/fan_out_on_write_service.rb
+++ b/app/services/fan_out_on_write_service.rb
@@ -119,7 +119,7 @@ class FanOutOnWriteService < BaseService
   end
 
   def update?
-    @is_update
+    @options[:update]
   end
 
   def broadcastable?