UX: remove the double-encoding of user titles.

`{{}}` in handlebars are already escaping the HTML elements.
This commit is contained in:
Vinoth Kannan 2019-12-06 04:07:47 +05:30
parent f7084a4339
commit da2b0b2882
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import Component from "@ember/component";
import { userPath } from "discourse/lib/url";
import { formatUsername, escapeExpression } from "discourse/lib/utilities";
import { formatUsername } from "discourse/lib/utilities";
import { normalize } from "discourse/components/user-info";
import { renderAvatar } from "discourse/helpers/user-avatar";
import { computed } from "@ember/object";
@ -18,7 +18,7 @@ export default Component.extend({
name,
userPath: userPath(user.username),
avatar: renderAvatar(user, { imageSize: "large" }),
title: escapeExpression(user.title || ""),
title: user.title || "",
formatedUsername: formatUsername(user.username)
};
});