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
|
|
|
|
|
|
|
# @todo cambiar el estado por query
|
|
|
|
@activity_pubs = site.activity_pubs.where(aasm_state: 'paused')
|
|
|
|
@activities = ActivityPub::Activity.where(activity_pub_id: @activity_pubs.pluck(:id))
|
|
|
|
@actors = ActivityPub::Actor.where(id: @activities.unscoped.distinct.pluck(:actor_id))
|
|
|
|
@instances = ActivityPub::Instance.where(id: @actors.distinct.pluck(:instance_id))
|
2024-01-12 20:37:37 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
# Perfil remoto de usuarie
|
|
|
|
def remote_profile
|
2024-02-06 19:50:26 +00:00
|
|
|
dummy_data
|
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
|