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

fix: cachear correctamente

closes #15567
This commit is contained in:
f 2024-03-13 16:46:04 -03:00
parent 061fc81cb0
commit 93140f37aa
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

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

View file

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