forgot to proxy brand label images

This commit is contained in:
Cynthia Foxwell 2025-04-16 13:43:08 -06:00
parent b2d71407ba
commit 71b19ae72b
No known key found for this signature in database

View File

@ -47,7 +47,7 @@ proc linkUser*(user: User, class="", prefs: Prefs): VNode =
if user.badge.name.len > 0:
span(class="brand-badge"):
a(href=replaceUrls(user.badge.url, prefs), title=user.badge.name):
img(class="brand-badge-image", src=user.badge.icon, alt=user.badge.name)
img(class="brand-badge-image", src=getPicUrl(user.badge.icon), alt=user.badge.name)
proc linkText*(text: string; class=""): VNode =
let url = if "http" notin text: https & text else: text