mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-15 11:21:42 +00:00
post_status_service.rb: save the status after setting local_only
This commit is contained in:
parent
24f36ca912
commit
c1410af368
|
@ -41,6 +41,7 @@ class PostStatusService < BaseService
|
||||||
DistributionWorker.perform_async(status.id)
|
DistributionWorker.perform_async(status.id)
|
||||||
|
|
||||||
status.local_only = status.marked_local_only?
|
status.local_only = status.marked_local_only?
|
||||||
|
status.save!
|
||||||
|
|
||||||
unless status.local_only
|
unless status.local_only
|
||||||
Pubsubhubbub::DistributionWorker.perform_async(status.stream_entry.id)
|
Pubsubhubbub::DistributionWorker.perform_async(status.stream_entry.id)
|
||||||
|
|
Loading…
Reference in a new issue