Bubble [main]
Don't abbreviate subspace-specific flairs when in the subspace
0e9efe131368fce1e7e1225b2a4f9d480c3d18c4
[1mdiff --git a/model.py b/model.py[m
[1mindex f2486ef..031ad75 100644[m
[1m--- a/model.py[m
[1m+++ b/model.py[m
[36m@@ -372,6 +372,7 @@[m [mclass User:[m
if user_flair.strip():[m
for flair in User.parse_flair(user_flair):[m
#print(user_flair, icon, label, scope)[m
[32m+[m[32m is_matching_context = (context and flair.scope == context.id)[m
[m
if long_form:[m
# Show everything in the long form.[m
[36m@@ -393,8 +394,8 @@[m [mclass User:[m
out += '📛 Personal flair: '[m
out += f"{flair.label}{scope}{' (set by admin)' if flair.is_admin_assigned else ''}\n"[m
[m
[31m- elif flair.scope == 0 or (context and flair.scope == context.id):[m
[31m- if abbreviate:[m
[32m+[m[32m elif flair.scope == 0 or is_matching_context:[m
[32m+[m[32m if abbreviate and not is_matching_context:[m
if not flair.icon() or flair.type == Flair.SELF_DESCRIPTION:[m
has_abbrev = True[m
continue[m