5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 13:16:22 +00:00
panel/app/processors/instance_moderation_processor.rb

13 lines
347 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# Gestiona los filtros de InstanceModeration
class InstanceModerationProcessor < Rubanok::Processor
prepare do
raw.includes(:instance).order('activity_pub_instances.hostname')
end
2024-03-05 19:24:16 +00:00
map :instance_state, activate_always: true do |instance_state: 'paused'|
raw.where(aasm_state: instance_state)
end
end