fix(debug): remove debug log in _formatRemoteShare, suggested by @maxbes

Signed-off-by: Samuel <faust64@gmail.com>
This commit is contained in:
Samuel 2021-02-05 10:45:44 +01:00
parent df9ce19a6b
commit 73338a061b
1 changed files with 5 additions and 6 deletions

View File

@ -348,14 +348,13 @@ import escapeHTML from 'escape-html'
/**
* Format a remote address
*
* @param {String} shareWith userid, full remote share, or whatever
* @param {String} shareWithDisplayName
* @param {String} message
* @returns {String} HTML code to display
*/
* @param {String} shareWith userid, full remote share, or whatever
* @param {String} shareWithDisplayName
* @param {String} message
* @returns {String} HTML code to display
*/
_formatRemoteShare: function(shareWith, shareWithDisplayName, message) {
var parts = OCA.Sharing.Util._REMOTE_OWNER_REGEXP.exec(shareWith)
console.error(parts);
if (!parts || !parts[7]) {
// display avatar of the user
var avatar = '<span class="avatar" data-username="' + escapeHTML(shareWith) + '" title="' + message + ' ' + escapeHTML(shareWithDisplayName) + '"></span>'