Logo
Explore Support Help
Register Sign In
tykayn/mastodon
1
0
Fork 0
You've already forked mastodon
mirror of https://framagit.org/tykayn/mastodon.git synced 2023-08-25 08:33:12 +02:00
Code Issues Projects Releases Wiki Activity
mastodon/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.23.1 Page: 81ms Template: 0ms
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 Help
Logo Chapril
Accueil Chapril
Services libres
Nous suivre
CGU
Mentions légales
Nous contacter
Accueil Chapril
Services libres
Nous suivre
CGU
Mentions légales
Nous contacter