about summary refs log tree commit diff
diff options
context:
space:
mode:
authorErin <sylphofelectricity@gmail.com>2017-12-10 20:35:57 -0600
committerErin <sylphofelectricity@gmail.com>2017-12-10 20:35:57 -0600
commitc1410af368911f0bbfe7205ba995c7c84dc023f6 (patch)
tree6e5944ded45f0dcc513597875f0762a09a1fc4e0
parent24f36ca9124353fdc3430c48b4afbb759276739d (diff)
post_status_service.rb: save the status after setting local_only
-rw-r--r--app/services/post_status_service.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb
index e531384c8..c7b5e8ffb 100644
--- a/app/services/post_status_service.rb
+++ b/app/services/post_status_service.rb
@@ -41,6 +41,7 @@ class PostStatusService < BaseService
     DistributionWorker.perform_async(status.id)
 
     status.local_only = status.marked_local_only?
+    status.save!
 
     unless status.local_only
       Pubsubhubbub::DistributionWorker.perform_async(status.stream_entry.id)