post_status_service.rb: save the status after setting local_only

lolsob-rspec
Erin 2017-12-10 20:35:57 -06:00
parent 278d34a0ec
commit c3e84d208c
1 changed files with 1 additions and 0 deletions

View 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)