Merge branch 'master' into glitch-soc/merge-upstream
This commit is contained in:
@@ -298,6 +298,8 @@ class Audio extends React.PureComponent {
|
||||
|
||||
_renderCanvas () {
|
||||
requestAnimationFrame(() => {
|
||||
if (!this.audio) return;
|
||||
|
||||
this.handleTimeUpdate();
|
||||
this._clear();
|
||||
this._draw();
|
||||
|
||||
@@ -182,6 +182,8 @@ class Video extends React.PureComponent {
|
||||
|
||||
_updateTime () {
|
||||
requestAnimationFrame(() => {
|
||||
if (!this.video) return;
|
||||
|
||||
this.handleTimeUpdate();
|
||||
|
||||
if (!this.state.paused) {
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"account.last_status": "Hoạt động gần đây",
|
||||
"account.link_verified_on": "Liên kết này đã được xác thực vào {date}",
|
||||
"account.locked_info": "Người dùng này thiết lập trạng thái ẩn. Họ sẽ tự mình xét duyệt các yêu cầu theo dõi.",
|
||||
"account.media": "Đa phương tiện",
|
||||
"account.media": "Bộ sưu tập",
|
||||
"account.mention": "Nhắc đến @{name}",
|
||||
"account.moved_to": "{name} đã dời sang:",
|
||||
"account.mute": "Ẩn @{name}",
|
||||
@@ -43,7 +43,7 @@
|
||||
"account.unfollow": "Ngưng theo dõi",
|
||||
"account.unmute": "Bỏ ẩn @{name}",
|
||||
"account.unmute_notifications": "Hiển lại thông báo từ @{name}",
|
||||
"account_note.placeholder": "Không nói gì thêm",
|
||||
"account_note.placeholder": "Nhấn để thêm ghi chú",
|
||||
"alert.rate_limited.message": "Vui lòng thử lại sau {retry_time, time, medium}.",
|
||||
"alert.rate_limited.title": "Vượt giới hạn",
|
||||
"alert.unexpected.message": "Đã xảy ra lỗi không mong muốn.",
|
||||
|
||||
9
app/services/after_unallow_domain_service.rb
Normal file
9
app/services/after_unallow_domain_service.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AfterUnallowDomainService < BaseService
|
||||
def call(domain)
|
||||
Account.where(domain: domain).find_each do |account|
|
||||
SuspendAccountService.new.call(account, reserve_username: false)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -12,8 +12,7 @@ class UnallowDomainService < BaseService
|
||||
private
|
||||
|
||||
def suspend_accounts!(domain)
|
||||
Account.where(domain: domain).find_each do |account|
|
||||
SuspendAccountService.new.call(account, reserve_username: false)
|
||||
end
|
||||
Account.where(domain: domain).in_batches.update_all(suspended_at: Time.now.utc)
|
||||
AfterUnallowDomainWorker.perform_async(domain)
|
||||
end
|
||||
end
|
||||
|
||||
9
app/workers/after_unallow_domain_worker.rb
Normal file
9
app/workers/after_unallow_domain_worker.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AfterUnallowDomainWorker
|
||||
include Sidekiq::Worker
|
||||
|
||||
def perform(domain)
|
||||
AfterUnallowDomainService.new.call(domain)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user