diff --git a/Mac/English.lproj/MainMenu.xib b/Mac/English.lproj/MainMenu.xib index 5339b29..6e9217b 100644 --- a/Mac/English.lproj/MainMenu.xib +++ b/Mac/English.lproj/MainMenu.xib @@ -104,14 +104,6 @@ - - - Clear cache - - 2147483647 - - - YES @@ -838,7 +830,7 @@ - + 256 YES @@ -868,7 +860,6 @@ {397, 581} - @@ -887,8 +878,6 @@ {397, 581} - - {{0, 0}, {2560, 1418}} @@ -909,7 +898,7 @@ - + 256 YES @@ -939,7 +928,6 @@ {376, 581} - @@ -956,8 +944,6 @@ {376, 581} - - {{0, 0}, {2560, 1418}} @@ -1087,7 +1073,7 @@ - + 256 YES @@ -1108,7 +1094,6 @@ {{20, 20}, {146, 146}} - YES @@ -1131,7 +1116,6 @@ 268 {{194, 82}, {266, 22}} - _NS:9 YES @@ -1178,7 +1162,6 @@ 268 {{191, 112}, {163, 17}} - _NS:1535 YES @@ -1212,8 +1195,6 @@ 268 {{391, 46}, {75, 32}} - - _NS:9 YES @@ -1237,7 +1218,6 @@ 268 {{373, 55}, {16, 16}} - _NS:945 28938 @@ -1245,8 +1225,6 @@ {480, 186} - - _NS:20 @@ -1268,7 +1246,7 @@ - + 256 YES @@ -1277,7 +1255,6 @@ 268 {{17, 79}, {192, 17}} - _NS:1535 YES @@ -1298,7 +1275,6 @@ 268 {{20, 49}, {333, 22}} - _NS:9 YES @@ -1321,8 +1297,6 @@ 268 {{285, 13}, {74, 32}} - - _NS:9 YES @@ -1343,8 +1317,6 @@ {373, 116} - - _NS:21 @@ -1820,14 +1792,6 @@ 663 - - - clearCache: - - - - 665 - login: @@ -2216,7 +2180,6 @@ - @@ -2753,11 +2716,6 @@ - - 664 - - - 667 @@ -2948,7 +2906,6 @@ 658.NSWindowTemplate.visibleAtLaunch 659.IBPluginDependency 660.IBPluginDependency - 664.IBPluginDependency 667.IBPluginDependency 668.IBPluginDependency 668.NSWindowTemplate.visibleAtLaunch @@ -3087,7 +3044,6 @@ com.apple.WebKitIBPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -3131,7 +3087,11 @@ clearCache: login: logout: + openNewMessageWindow: + sendPost: + showConversationForPostId:andEntity: showProfile: + showProfileForEntity: YES @@ -3139,6 +3099,10 @@ id id id + id + NSString + id + NSString @@ -3148,7 +3112,11 @@ clearCache: login: logout: + openNewMessageWindow: + sendPost: + showConversationForPostId:andEntity: showProfile: + showProfileForEntity: YES @@ -3164,10 +3132,26 @@ logout: id + + openNewMessageWindow: + id + + + sendPost: + id + + + showConversationForPostId:andEntity: + NSString + showProfile: id + + showProfileForEntity: + NSString + diff --git a/WebKit/scripts/helper/Core.js b/WebKit/scripts/helper/Core.js index aa55a4d..c1abd59 100644 --- a/WebKit/scripts/helper/Core.js +++ b/WebKit/scripts/helper/Core.js @@ -265,8 +265,7 @@ function(jQuery, Paths, URI, HostApp, Cache) { entities.push(mention.entity) }); - var hash = /(^|\s)(#)(\w+)/ig; - template.message.innerHTML = this.replaceURLWithHTMLLinks(text, entities, template.message).replace(hash, "$1$2$3"); + template.message.innerHTML = this.replaceURLWithHTMLLinks(text, entities, template.message); if (status.type == "https://tent.io/types/post/photo/v0.1.0") { @@ -787,17 +786,18 @@ function(jQuery, Paths, URI, HostApp, Cache) { result = url; } else { - var protocol = ""; - if (!url.startsWith("http://") && !url.startsWith("https://")) { - protocol = "http://"; + result = url; + if (url.startsWith("http://") || url.startsWith("https://")) { + result = '' + url + ''; } - result = '' + url + ''; } return result; } - return URI.withinString(text, callback); + var hash = /(^|\s)(#)(\w+)/ig; + + return URI.withinString(text, callback).replace(hash, "$1$2$3"); } Core.prototype.parseForMedia = function(text, images) {