Added the link display to the replies

This commit is contained in:
Luca 2020-10-07 17:59:24 +02:00
parent 9df6e248ad
commit 70fae4dcfc
2 changed files with 8 additions and 3 deletions

View File

@ -151,6 +151,9 @@ export default Vue.extend({
comment.likes = null comment.likes = null
} }
comment.text = autolinker.link(comment.text) comment.text = autolinker.link(comment.text)
comment.replies.forEach((reply) => {
reply.text = autolinker.link(reply.text)
})
return comment return comment
}) })
this.commentData = this.commentData.concat(commentData) this.commentData = this.commentData.concat(commentData)

View File

@ -96,9 +96,11 @@
{{ reply.time }} {{ reply.time }}
</span> </span>
</p> </p>
<p class="commentText"> <ft-timestamp-catcher
{{ reply.text }} class="commentText"
</p> :input-html="reply.text"
@timestamp-event="onTimestamp"
/>
<p class="commentLikeCount"> <p class="commentLikeCount">
<font-awesome-icon <font-awesome-icon
icon="thumbs-up" icon="thumbs-up"