5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 19:26:21 +00:00
panel/app/controllers/moderation_queue_controller.rb

16 lines
661 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# Cola de moderación de ActivityPub
class ModerationQueueController < ApplicationController
# Cola de moderación viendo todo el sitio
def index
2024-03-04 17:47:20 +00:00
session[:moderation_queue_filters] = params.permit(:state, :actor_state, :activity_pub_state)
# @todo cambiar el estado por query
@activity_pubs = site.activity_pubs
@instance_moderations = rubanok_process(site.instance_moderations, with: InstanceModerationProcessor)
@actor_moderations = rubanok_process(site.actor_moderations, with: ActorModerationProcessor)
2024-03-04 14:59:29 +00:00
@moderation_queue = rubanok_process(site.activity_pubs, with: ActivityPubProcessor)
end
end