From ae3220fb88bee7791c0c6575eb6990fa2c5ccb4f Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 9 Mar 2020 15:20:00 +0000 Subject: [PATCH] FIX: Use `bio_excerpt` when checking for presence (#9148) When `enable_new_user_card_route` is enabled, only `bio_excerpt` is serialized for user cards. `bio_cooked` is only loaded on the main user route. --- .../javascripts/discourse/components/user-card-contents.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/user-card-contents.js.es6 b/app/assets/javascripts/discourse/components/user-card-contents.js.es6 index cf2502c552b..ca6ec7dbda2 100644 --- a/app/assets/javascripts/discourse/components/user-card-contents.js.es6 +++ b/app/assets/javascripts/discourse/components/user-card-contents.js.es6 @@ -40,7 +40,7 @@ export default Component.extend(CardContentsBase, CanCheckEmails, CleansUp, { showDelete: and("viewingAdmin", "showName", "user.canBeDeleted"), linkWebsite: not("user.isBasic"), hasLocationOrWebsite: or("user.location", "user.website_name"), - isSuspendedOrHasBio: or("user.suspend_reason", "user.bio_cooked"), + isSuspendedOrHasBio: or("user.suspend_reason", "user.bio_excerpt"), showCheckEmail: and("user.staged", "canCheckEmails"), user: null,