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

fix: no cachear formularios #15570

This commit is contained in:
f 2024-03-14 11:57:06 -03:00
parent 30f2f0a442
commit cfe70e3a89
No known key found for this signature in database
6 changed files with 42 additions and 43 deletions

View file

@ -5,12 +5,12 @@
.col-1
= render 'components/checkbox', id: actor_moderation.id, form: form, name: 'actor_moderation[]', value: actor_moderation.id, data: { target: 'select-all.input' }
.col-11
- cache [actor_moderation, profile] do
%h4
= link_to text_plain(profile['name']), site_actor_moderation_path(id: actor_moderation)
.mb-3
= sanitize profile['summary']
-# Botones de Moderación
- cache actor_moderation do
.d-flex.pb-4
= render 'components/profiles_btn_box', actor_moderation: actor_moderation

View file

@ -12,6 +12,5 @@
- if actor_moderations.count.zero?
%h4= t('moderation_queue.nothing')
- actor_moderations.find_each do |actor_moderation|
- cache [actor_moderation, actor_moderation.actor] do
%hr
= render 'account', actor_moderation: actor_moderation, profile: actor_moderation.actor.content, form: form_id

View file

@ -13,6 +13,7 @@
.col-1
= render 'components/checkbox', id: activity_pub.id, name: 'activity_pub[]', value: activity_pub.id, data: { target: 'select-all.input' }, form: form
.col-11
- cache [activity_pub, comment] do
.d-flex.flex-row.align-items-center.justify-content-between
%h4.mb-0
%a{ href: text_plain(comment['attributedTo']) }= text_plain profile['preferredUsername']

View file

@ -12,6 +12,5 @@
- if moderation_queue.count.zero?
%h4= t('moderation_queue.nothing')
- moderation_queue.each do |activity_pub|
- cache [activity_pub, activity_pub.object, activity_pub.actor] do
%hr
= render 'moderation_queue/comment', comment: activity_pub.object.content, profile: activity_pub.actor.content, activity_pub: activity_pub, form: form_id

View file

@ -6,6 +6,7 @@
.col-1
= render 'components/checkbox', id: instance.hostname, form: form, name: 'instance_moderation[]', value: instance_moderation.id, data: { target: 'select-all.input' }
.col-11
- cache [instance_moderation, instance] do
%h4
%a{ href: instance.uri }= title || instance.hostname
- if title.present?

View file

@ -14,7 +14,6 @@
%h4= t('moderation_queue.nothing')
- instance_moderations.each do |instance_moderation|
- cache [instance_moderation, instance_moderation.instance] do
%hr
= render 'moderation_queue/instance', instance_moderation: instance_moderation, instance: instance_moderation.instance, form: form_id