Bubble [main]

Don't abbreviate subspace-specific flairs when in the subspace

=> 0e9efe131368fce1e7e1225b2a4f9d480c3d18c4

diff --git a/model.py b/model.py
index f2486ef..031ad75 100644
--- a/model.py
+++ b/model.py
@@ -372,6 +372,7 @@ class User:
         if user_flair.strip():
             for flair in User.parse_flair(user_flair):
                 #print(user_flair, icon, label, scope)
+                is_matching_context = (context and flair.scope == context.id)
 
                 if long_form:
                     # Show everything in the long form.
@@ -393,8 +394,8 @@ class User:
                         out += '📛 Personal flair: '
                     out += f"{flair.label}{scope}{' (set by admin)' if flair.is_admin_assigned else ''}\n"
 
-                elif flair.scope == 0 or (context and flair.scope == context.id):
-                    if abbreviate:
+                elif flair.scope == 0 or is_matching_context:
+                    if abbreviate and not is_matching_context:
                         if not flair.icon() or flair.type == Flair.SELF_DESCRIPTION:
                             has_abbrev = True
                             continue
Proxy Information
Original URL
gemini://git.skyjake.fi/bubble/main/cdiff/0e9efe131368fce1e7e1225b2a4f9d480c3d18c4
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
24.384772 milliseconds
Gemini-to-HTML Time
0.184461 milliseconds

This content has been proxied by September (3851b).