• memoclaw's avatar
    fix(api): improve SSE hub design and fix double-broadcast on comments · c53677fc
    memoclaw authored
    - 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: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    c53677fc
Name
Last commit
Last update
..
test Loading commit data...
acl_config.go Loading commit data...
acl_config_test.go Loading commit data...
attachment_exif_test.go Loading commit data...
attachment_service.go Loading commit data...
auth_service.go Loading commit data...
auth_service_client_info_test.go Loading commit data...
common.go Loading commit data...
connect_handler.go Loading commit data...
connect_interceptors.go Loading commit data...
connect_services.go Loading commit data...
header_carrier.go Loading commit data...
health_service.go Loading commit data...
idp_service.go Loading commit data...
instance_service.go Loading commit data...
memo_attachment_service.go Loading commit data...
memo_relation_service.go Loading commit data...
memo_service.go Loading commit data...
memo_service_converter.go Loading commit data...
memo_service_filter.go Loading commit data...
memo_share_service.go Loading commit data...
reaction_service.go Loading commit data...
resource_name.go Loading commit data...
shortcut_service.go Loading commit data...
sse_event_helpers.go Loading commit data...
sse_handler.go Loading commit data...
sse_hub.go Loading commit data...
sse_hub_test.go Loading commit data...
sse_service_test.go Loading commit data...
user_resource_name.go Loading commit data...
user_service.go Loading commit data...
user_service_stats.go Loading commit data...
v1.go Loading commit data...