5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 19:16:23 +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?
%h4= t('moderation_queue.nothing')
- actor_moderations.find_each do |actor_moderation|
- next if actor_moderation.actor.content.empty?
%hr
= 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?
%h4= t('moderation_queue.nothing')
- moderation_queue.each do |activity_pub|
- next if activity_pub.object.content.empty?
- next if activity_pub.actor.content.empty?
%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