5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 18:26:21 +00:00

feat: mostrar las cuentas en la cola de moderación

This commit is contained in:
f 2024-02-28 18:35:34 -03:00
parent 0e2f6276eb
commit 25c9963284
No known key found for this signature in database
4 changed files with 6 additions and 5 deletions

View file

@ -11,6 +11,7 @@ class ModerationQueueController < ApplicationController
# @todo cambiar el estado por query # @todo cambiar el estado por query
@activity_pubs = site.activity_pubs @activity_pubs = site.activity_pubs
@instance_moderations = rubanok_process(site.instance_moderations, with: InstanceModerationProcessor) @instance_moderations = rubanok_process(site.instance_moderations, with: InstanceModerationProcessor)
@actor_moderations = rubanok_process(site.actor_moderations, with: ActorModerationProcessor)
end end
# Perfil remoto de usuarie # Perfil remoto de usuarie

View file

@ -7,7 +7,7 @@ class ActorModerationProcessor < Rubanok::Processor
raw.order(updated_at: :desc) raw.order(updated_at: :desc)
end end
map :actor_state, activate_always: true do |state: 'paused'| map :actor_state, activate_always: true do |actor_state: 'paused'|
raw.where(aasm_state: state) raw.where(aasm_state: actor_state)
end end
end end

View file

@ -5,6 +5,6 @@
-# Filtros -# Filtros
= render 'components/profiles_filters' = render 'components/profiles_filters'
.col-12 .col-12
- @moderation_queue.map{ |c| c['attributedTo'] }.uniq.each do |remote_profile| - actor_moderations.find_each do |actor_moderation|
%hr %hr
= render 'account', profile: remote_profile = render 'account', actor_moderation: actor_moderation, profile: actor_moderation.actor.content

View file

@ -9,7 +9,7 @@
%hr %hr
- summary = t('.accounts') - summary = t('.accounts')
= render 'layouts/details', summary: summary do = render 'layouts/details', summary: summary do
= render 'moderation_queue/accounts', site: @site, post: @post, moderation_queue: @moderation_queue = render 'moderation_queue/accounts', site: @site, post: @post, actor_moderations: @actor_moderations
%hr %hr
- summary = t('.comments') - summary = t('.comments')
= render 'layouts/details', summary: summary do = render 'layouts/details', summary: summary do