Skip to content

Commit 8e59380

Browse files
committed
fix: use tagline for author bio in v3 profile dict
feat: display tagline on user profile header revert: remove tagline from profile header, scope to Meet Boost Core only fix: scope author tagline to Meet Boost Core card only
1 parent cd9dbd3 commit 8e59380

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

libraries/utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,11 @@ def build_library_intro_context(
533533
.order_by("-count")[:remaining]
534534
)
535535

536-
author_dicts = [user.to_v3_profile_dict(role=roles[user.id]) for user in combined]
536+
author_dicts = []
537+
for user in combined:
538+
profile = user.to_v3_profile_dict(role=roles[user.id])
539+
profile["bio"] = user.tagline
540+
author_dicts.append(profile)
537541
author_dicts.extend(
538542
contributor.to_v3_profile_dict("Contributor")
539543
for contributor in top_contributors

0 commit comments

Comments
 (0)