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

fix: ignorar comentarios y cuentas sin contenido aun

This commit is contained in:
f 2024-03-18 16:55:20 -03:00
parent 376339aee5
commit 8034d20612
No known key found for this signature in database
2 changed files with 3 additions and 0 deletions

View file

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

View file

@ -12,5 +12,7 @@
- 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|
- next if activity_pub.object.content.empty?
- next if activity_pub.actor.content.empty?
%hr %hr
= render 'moderation_queue/comment', comment: activity_pub.object.content, profile: activity_pub.actor.content, activity_pub: activity_pub, form: form_id, site: site, object: activity_pub.object = render 'moderation_queue/comment', comment: activity_pub.object.content, profile: activity_pub.actor.content, activity_pub: activity_pub, form: form_id, site: site, object: activity_pub.object