]> cat aescling's git repositories - mastodon.git/commitdiff
Merge branch 'master' into glitch-soc/merge-upstream
authorThibaut Girka <thib@sitedethib.com>
Mon, 11 Mar 2019 10:23:50 +0000 (11:23 +0100)
committerThibaut Girka <thib@sitedethib.com>
Mon, 11 Mar 2019 10:23:50 +0000 (11:23 +0100)
Conflicts:
- app/services/post_status_service.rb
  Small conflict due to handling of instance-local toots.
  A subsequent change is required to ensure instance-local polls are not leaked
  through Update.

1  2 
app/controllers/settings/exports_controller.rb
app/javascript/mastodon/locales/en.json
app/services/post_status_service.rb
streaming/index.js

index 8a9d26c5629f25b3915f2ec2ce8140a00f4744a7,a1705a6adcfee42499e08244ca9c39a1c58d5836..b9952369d89089a0d629f241f415d2243f6577e3
@@@ -91,10 -88,9 +91,13 @@@ class PostStatusService < BaseServic
    def postprocess_status!
      LinkCrawlWorker.perform_async(@status.id) unless @status.spoiler_text?
      DistributionWorker.perform_async(@status.id)
 -    Pubsubhubbub::DistributionWorker.perform_async(@status.stream_entry.id)
 -    ActivityPub::DistributionWorker.perform_async(@status.id)
++
 +    unless @status.local_only?
 +      Pubsubhubbub::DistributionWorker.perform_async(@status.stream_entry.id)
 +      ActivityPub::DistributionWorker.perform_async(@status.id)
 +    end
++
+     PollExpirationNotifyWorker.perform_at(@status.poll.expires_at, @status.poll.id) if @status.poll
    end
  
    def validate_media!
Simple merge