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

fixup! fix: limpiar html remoto

This commit is contained in:
f 2024-03-04 13:17:21 -03:00
parent 6110172324
commit d8487ea7e9
No known key found for this signature in database
2 changed files with 9 additions and 7 deletions

View file

@ -1,6 +1,7 @@
-# Componente Comentario -# Componente Comentario
- in_reply_to = text_plain comment['inReplyTo'] - in_reply_to = text_plain comment['inReplyTo']
- summary = text_plain(comment['summary'])
.row.no-gutters .row.no-gutters
.col-1 .col-1
@ -10,17 +11,17 @@
%h4.mb-0 %h4.mb-0
%a{ href: text_plain(comment['attributedTo']) }= text_plain profile['preferredUsername'] %a{ href: text_plain(comment['attributedTo']) }= text_plain profile['preferredUsername']
%small %small
= render 'layouts/time', time: comment['published'] = render 'layouts/time', time: text_plain(comment['published'])
- if in_reply_to.present? - if in_reply_to.present?
%dl %dl
%dt.d-inline %dt.d-inline
%small= t('.reply_to') %small= t('.reply_to')
%dd.d-inline %dd.d-inline
%small %small
%a{ href: in_reply_to) }= in_reply_to %a{ href: in_reply_to }= in_reply_to
%div .content
- if comment['summary'].present? - if summary.present?
= render 'layouts/details', summary: text_plain(comment['summary']), summary_class: 'h5' do = render 'layouts/details', summary: summary, summary_class: 'h5' do
= sanitize comment['content'] = sanitize comment['content']
- else - else
= sanitize comment['content'] = sanitize comment['content']

View file

@ -7,11 +7,12 @@
.col-11 .col-11
%h4 %h4
%a{ href: instance.uri }= sanitize(instance.content['title']) || instance.hostname %a{ href: instance.uri }= sanitize(instance.content['title']) || instance.hostname
%p= sanitize instance.content['description'] .content
= sanitize instance.content['description']
- if usuaries.present? - if usuaries.present?
%dl %dl
%dt.d-inline= t('.users') %dt.d-inline= t('.users')
%dd.d-inline= sanitize usuaries.to_s %dd.d-inline= text_plain usuaries.to_s
-# Botones moderación -# Botones moderación
.d-flex.pb-4 .d-flex.pb-4