]> cat aescling's git repositories - mastodon.git/commitdiff
post_status_service.rb: save the status after setting local_only
authorErin <sylphofelectricity@gmail.com>
Mon, 11 Dec 2017 02:35:57 +0000 (20:35 -0600)
committerErin <sylphofelectricity@gmail.com>
Mon, 11 Dec 2017 02:35:57 +0000 (20:35 -0600)
app/services/post_status_service.rb

index e531384c820e322ffde156086fed1b99934c6408..c7b5e8ffb09652412350986104ca8927d81b8b33 100644 (file)
@@ -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)