From d7c40fa6efd1cefa5a73d442d5aa427810732701 Mon Sep 17 00:00:00 2001 From: James Allen Date: Mon, 13 Feb 2017 10:05:48 +0100 Subject: [PATCH] Run comments through same URL linking filter as chat --- services/web/app/views/project/editor/review-panel.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/app/views/project/editor/review-panel.pug b/services/web/app/views/project/editor/review-panel.pug index 43a854b591..c09f2a1e0b 100644 --- a/services/web/app/views/project/editor/review-panel.pug +++ b/services/web/app/views/project/editor/review-panel.pug @@ -201,7 +201,7 @@ script(type='text/ng-template', id='commentEntryTemplate') span.rp-entry-user( style="color: hsl({{ comment.user.hue }}, 70%, 40%);", ) {{ comment.user.name }}:  - | {{ comment.content }} + span(ng-bind-html="comment.content | linky:'_blank'") textarea.rp-comment-input( expandable-text-area ng-if="comment.editing" @@ -272,7 +272,7 @@ script(type='text/ng-template', id='resolvedCommentEntryTemplate') style="color: hsl({{ comment.user.hue }}, 70%, 40%);" ng-if="$first || comment.user.id !== thread.messages[$index - 1].user.id" ) {{ comment.user.name }}:  - | {{ comment.content }} + span(ng-bind-html="comment.content | linky:'_blank'") .rp-entry-metadata | {{ comment.timestamp | date : 'MMM d, y h:mm a' }} .rp-comment.rp-comment-resolver