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: add createdAt/updatedAt to connection records, uppercase connectionType

semble's indexer requires these fields — connections without them
don't appear in the UI. matches the schema used by working semble
users (e.g. bmann.ca).

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

zzstoatzz 41b2800a 31165d7d

+8 -2
+8 -2
src/bot/types.py
··· 109 109 110 110 def to_record(self) -> dict: 111 111 """Serialize to the shape expected by com.atproto.repo.createRecord.""" 112 - record: dict = {"source": self.source, "target": self.target} 112 + now = datetime.now(UTC).isoformat() 113 + record: dict = { 114 + "source": self.source, 115 + "target": self.target, 116 + "createdAt": now, 117 + "updatedAt": now, 118 + } 113 119 if self.connection_type: 114 - record["connectionType"] = self.connection_type 120 + record["connectionType"] = self.connection_type.upper() 115 121 if self.note: 116 122 record["note"] = self.note 117 123 return record