docs: add block/mute user relations, emoji-sync CLI, and uid indexes
DevPlace CI / test (push) Failing after 2m7s

- Add `/block`, `/mute` endpoints with block/unblock and mute/unmute functionality in `routers/relations.py`, hiding blocked users' content everywhere except their own profile while muting only suppresses notifications
- Introduce `devplace emoji-sync` CLI command to regenerate `static/js/emoji-shortcodes.js` from the emoji library, documented in `CLAUDE.md` and wired in `cli.py`
- Create `get_blocked_uids()` database helper and apply it in `content.py` `load_detail()` to filter blocked users' posts from detail views
- Implement `_uid_index()` and `_drop_index()` helpers in `database.py` for unique uid indexes across tables, with `user_relations` added to `SOFT_DELETE_TABLES`
- Document new routes in `AGENTS.md` and `README.md`, including emoji shortcodes rendering behavior distinct from the emoji picker
This commit is contained in:
2026-06-19 08:06:09 +00:00
parent f3a4667fce
commit 741d7aade6
136 changed files with 3025 additions and 564 deletions
+6 -6
View File
@@ -264,6 +264,7 @@ class DevPlaceBot:
or []
)
self.state.username = self._next_handle()
self.state.account_api_key = ""
self.state.email = self.faker.email()
self.state.password = self.faker.password(length=random.randint(12, 18))
self.state.started_at = datetime.now().isoformat()
@@ -312,6 +313,7 @@ class DevPlaceBot:
self.state.username = f"{base}{random.randint(10, 9999)}"[:20]
else:
self.state.username = self._next_handle()
self.state.account_api_key = ""
self.state.email = self.faker.email()
self._log(f"Signup failed, retrying as {self.state.username}")
return False
@@ -337,16 +339,14 @@ class DevPlaceBot:
return (key or "").strip()
async def _adopt_account_api_key(self) -> bool:
if self.state.account_api_key:
self.llm.api_key = self.state.account_api_key
return True
for attempt in range(5):
key = await self._fetch_account_api_key()
if key:
self.state.account_api_key = key
if key != self.state.account_api_key:
self.state.account_api_key = key
self._save()
self._log("Adopted account API key for gateway calls")
self.llm.api_key = key
self._save()
self._log("Adopted account API key for gateway calls")
return True
if attempt < 4:
await asyncio.sleep(2)