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

feat: apartado de cuentas dentro de actividades de moderación #15091
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
maki 2024-02-06 16:50:26 -03:00
parent c8267c44e8
commit 6b0d2ded91
4 changed files with 8 additions and 11 deletions

View file

@ -4,21 +4,17 @@
class ModerationQueueController < ApplicationController
# Cola de moderación viendo todo el sitio
def index
@moderation_queue = YAML.safe_load(File.read(Rails.root.join('db', 'seeds', 'moderation_queue.yaml')))
@remote_profile = YAML.safe_load(File.read(Rails.root.join('db', 'seeds', 'remote_profile.yaml')))
@moderation_queue.each do |activity|
activity['attributedTo'] = @remote_profile
end
dummy_data
end
# Perfil remoto de usuarie
def remote_profile
@remote_profile = YAML.safe_load(File.read(Rails.root.join('db', 'seeds', 'remote_profile.yaml')))
dummy_data
end
# todon.nl está usando /api/v2/instance
# mauve.moe usa /api/v1/instance
def instances
@instances = YAML.safe_load(File.read(Rails.root.join('db', 'seeds', 'instances.yaml')))
dummy_data
end
end

View file

@ -0,0 +1,2 @@
%a{href: profile['id']}= profile['preferredUsername']
%p= sanitize profile['summary']

View file

@ -1,6 +1,3 @@
- @moderation_queue.each do |comment|
= render 'account', comment: comment, profile: @remote_profile
- filtros_moderation_queue
- botoneras_moderation_queue
.d-flex.py-2.justify-content-center
@ -12,4 +9,6 @@
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_allow'), path: '/'
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_reject'), path: '/'
- @moderation_queue.map{|c| c['attributedTo']}.uniq.each do |remote_profile|
= render 'account', profile: remote_profile
= render 'moderation_queue/button_box', btn_params: @profile_btn_params

View file

@ -14,7 +14,7 @@ es:
profile_published: Publicada
profile_summary: Resumen
profile_button_box:
text_approve: Aprovar siempre
text_approve: Aprobar siempre
text_check: Revisar siempre
text_deny: Bloquear
text_report: Reportar