From f206be201d3169edb5cacbe49caf81f28eaff313 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Tue, 7 Jun 2016 14:12:42 +0300 Subject: [PATCH] Fixed wrapUrl for inner URL Close #1143 --- app/js/lib/ng_utils.js | 7 +++++-- app/js/messages_manager.js | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/js/lib/ng_utils.js b/app/js/lib/ng_utils.js index f826ee20..963dd2ed 100644 --- a/app/js/lib/ng_utils.js +++ b/app/js/lib/ng_utils.js @@ -1624,7 +1624,7 @@ angular.module('izhukov.utils', []) break; } var url = entity.url || entityText; - url = wrapUrl(url, entity._ == 'messageEntityTextUrl'); + url = wrapUrl(url, entity._ == 'messageEntityTextUrl' ? 2 : false); html.push( '