mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 01:06:22 +00:00
fixup! fix: limpiar html remoto
This commit is contained in:
parent
6110172324
commit
d8487ea7e9
2 changed files with 9 additions and 7 deletions
|
@ -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']
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue