Logo
Explore Help
Sign In
stevenoh0908/mastodon-sakyey
1
0
Fork 0
You've already forked mastodon-sakyey
Code Issues Packages Projects Releases Wiki Activity
Files
d25ed12e56c4688c20c762cedc0f06da170df2d9
mastodon-sakyey/app/workers/block_worker.rb

13 lines
239 B
Ruby
Raw Normal View History

Move merging/unmerging of timelines into background. Move blocking into background as well since it's a computationally expensive
2017-01-23 21:29:34 +01:00
# frozen_string_literal: true
class BlockWorker
include Sidekiq::Worker
def perform(account_id, target_account_id)
Add conversations API (#8832) * Add conversations API * Add web UI for conversations * Add test for conversations API * Add tests for ConversationAccount * Improve web UI * Rename ConversationAccount to AccountConversation * Remove conversations on block and mute * Change last_status_id to be a denormalization of status_ids * Add optimistic locking
2018-10-07 23:44:58 +02:00
AfterBlockService.new.call(
Account.find(account_id),
Account.find(target_account_id)
)
Move merging/unmerging of timelines into background. Move blocking into background as well since it's a computationally expensive
2017-01-23 21:29:34 +01:00
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 213ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API