2024-01-12 20:37:37 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# Cola de moderación de ActivityPub
|
|
|
|
class ModerationQueueController < ApplicationController
|
|
|
|
# Cola de moderación viendo todo el sitio
|
|
|
|
def index
|
2024-02-06 19:50:26 +00:00
|
|
|
dummy_data
|
2024-02-24 16:04:52 +00:00
|
|
|
|
2024-02-28 22:10:37 +00:00
|
|
|
session[:moderation_queue_filters] = params.permit(:state, :actor_state)
|
2024-02-28 19:32:03 +00:00
|
|
|
|
2024-02-24 16:04:52 +00:00
|
|
|
# @todo cambiar el estado por query
|
2024-02-26 13:39:00 +00:00
|
|
|
@activity_pubs = site.activity_pubs
|
2024-02-26 19:51:33 +00:00
|
|
|
@instance_moderations = rubanok_process(site.instance_moderations, with: InstanceModerationProcessor)
|
2024-02-28 21:35:34 +00:00
|
|
|
@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)
|
2024-01-12 20:37:37 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
# todon.nl está usando /api/v2/instance
|
|
|
|
# mauve.moe usa /api/v1/instance
|
|
|
|
def instances
|
2024-02-06 19:50:26 +00:00
|
|
|
dummy_data
|
2024-01-12 20:37:37 +00:00
|
|
|
end
|
|
|
|
end
|