a digital entity named phi that roams bsky phi.zzstoatzz.io
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: use regex to strip bio suffixes regardless of legacy format

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

zzstoatzz 959e43c5 947b18d2

+3 -3
+3 -3
src/bot/core/profile_manager.py
··· 1 1 """Manage bot profile status updates.""" 2 2 3 3 import logging 4 + import re 4 5 from typing import Any 5 6 6 7 from atproto import Client ··· 165 166 166 167 # Strip any existing suffix to get clean base bio 167 168 clean = self.base_bio 168 - for suffix in _ALL_SUFFIXES: 169 - clean = clean.replace(suffix, "") 170 - clean = clean.rstrip() 169 + # cut everything from the first status marker onward 170 + clean = re.split(r"\s*•?\s*(?:🟢|🔴|source code:)", clean)[0].rstrip() 171 171 172 172 # Store cleaned base for next time 173 173 self.base_bio = clean