Correctly handle displaynames returned from the sharee API

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2019-01-14 14:09:12 +01:00
parent eeec3c7e86
commit 86e6cebc18
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 2 additions and 2 deletions

View File

@ -477,7 +477,7 @@
autocompleteRenderItem: function(ul, item) {
var icon = 'icon-user';
var text = item.label;
var text = escapeHTML(item.label);
var description = '';
var type = '';
var getTranslatedType = function(type) {
@ -497,7 +497,7 @@
}
if (typeof item.name !== 'undefined') {
text = item.name;
text = escapeHTML(item.name);
}
if (item.value.shareType === OC.Share.SHARE_TYPE_GROUP) {
icon = 'icon-contacts-dark';