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.text = autolinker.link(comment.text)
comment.replies.forEach((reply) => {
reply.text = autolinker.link(reply.text)
})
return comment
})
this.commentData = this.commentData.concat(commentData)

View File

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