0
0
Fork 0

Add link to github project to footer, move FanOutOnWriteService calls to

DistributionWorker. That isn't the heaviest service, yet, but gotta start
somewhere
This commit is contained in:
Eugen Rochko 2016-03-25 03:22:26 +01:00
parent 42dcb0d4cb
commit 8eeec389c1
5 changed files with 29 additions and 7 deletions

View file

@ -38,7 +38,7 @@ class ProcessFeedService < BaseService
# If we added a status, go through accounts it mentions and create respective relations
unless status.new_record?
record_remote_mentions(status, entry.xpath('./xmlns:link[@rel="mentioned"]'))
fan_out_on_write_service.(status)
DistributionWorker.perform_async(status.id)
end
end