memos/server/router
memoclaw c53677fcba fix(api): improve SSE hub design and fix double-broadcast on comments
- Fix duplicate SSE event on comment creation: CreateMemoComment now
  suppresses the redundant memo.created broadcast from the inner
  CreateMemo call, emitting only memo.comment.created
- Extract reaction event-building IIFEs into buildMemoReactionSSEEvent
  helper, removing duplicated inline DB-fetch logic
- Promote resolveSSEAudienceCreatorID from method to free function
  (resolveSSECreatorID) since it never used the receiver
- Add userID to SSE connect/disconnect log lines for traceability
- Change canReceive default from permissive (return true) to
  deny-with-warning for unknown visibility types
- Add comprehensive tests covering all new helpers, visibility edge
  cases, slow-client drop behavior, and the double-broadcast fix

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-29 07:33:40 +08:00
..
api/v1 fix(api): improve SSE hub design and fix double-broadcast on comments 2026-03-29 07:33:40 +08:00
fileserver fix(api): switch user resource names to usernames (#5779) 2026-03-25 09:11:17 +08:00
frontend chore: upgrade Echo v4 to v5.0.3 2026-02-10 09:15:27 +08:00
mcp fix(api): switch user resource names to usernames (#5779) 2026-03-25 09:11:17 +08:00
rss chore: optimize multi-user RSS feed generation by fixing N+1 query (#5749) 2026-03-20 18:09:24 +08:00