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

27 lines
771 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
dummy_data
# @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))
end
# Perfil remoto de usuarie
def remote_profile
dummy_data
end
# todon.nl está usando /api/v2/instance
# mauve.moe usa /api/v1/instance
def instances
dummy_data
end
end