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.
This commit is contained in:
David Taylor 2020-03-09 15:20:00 +00:00 committed by GitHub
parent 174764be25
commit ae3220fb88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,