mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 13:46:20 +00:00
feat: mostrar las cuentas en la cola de moderación
This commit is contained in:
parent
0e2f6276eb
commit
25c9963284
4 changed files with 6 additions and 5 deletions
|
@ -11,6 +11,7 @@ class ModerationQueueController < ApplicationController
|
|||
# @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)
|
||||
end
|
||||
|
||||
# Perfil remoto de usuarie
|
||||
|
|
|
@ -7,7 +7,7 @@ class ActorModerationProcessor < Rubanok::Processor
|
|||
raw.order(updated_at: :desc)
|
||||
end
|
||||
|
||||
map :actor_state, activate_always: true do |state: 'paused'|
|
||||
raw.where(aasm_state: state)
|
||||
map :actor_state, activate_always: true do |actor_state: 'paused'|
|
||||
raw.where(aasm_state: actor_state)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
-# Filtros
|
||||
= render 'components/profiles_filters'
|
||||
.col-12
|
||||
- @moderation_queue.map{ |c| c['attributedTo'] }.uniq.each do |remote_profile|
|
||||
- actor_moderations.find_each do |actor_moderation|
|
||||
%hr
|
||||
= render 'account', profile: remote_profile
|
||||
= render 'account', actor_moderation: actor_moderation, profile: actor_moderation.actor.content
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
%hr
|
||||
- summary = t('.accounts')
|
||||
= 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
|
||||
- summary = t('.comments')
|
||||
= render 'layouts/details', summary: summary do
|
||||
|
|
Loading…
Reference in a new issue