5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 19:56:21 +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
- in_reply_to = text_plain comment['inReplyTo']
- summary = text_plain(comment['summary'])
.row.no-gutters
.col-1
@ -10,17 +11,17 @@
%h4.mb-0
%a{ href: text_plain(comment['attributedTo']) }= text_plain profile['preferredUsername']
%small
= render 'layouts/time', time: comment['published']
= render 'layouts/time', time: text_plain(comment['published'])
- if in_reply_to.present?
%dl
%dt.d-inline
%small= t('.reply_to')
%dd.d-inline
%small
%a{ href: in_reply_to) }= in_reply_to
%div
- if comment['summary'].present?
= render 'layouts/details', summary: text_plain(comment['summary']), summary_class: 'h5' do
%a{ href: in_reply_to }= in_reply_to
.content
- if summary.present?
= render 'layouts/details', summary: summary, summary_class: 'h5' do
= sanitize comment['content']
- else
= sanitize comment['content']

View file

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