Skip to content

fix(comms): hide blasts sent before the sender closed their inbox - #1047

Merged
dylanjeffers merged 2 commits into
mainfrom
fix/comms-blasts-and-cleanup
Sep 24, 2026
Merged

dylanjeffers merged 2 commits into
mainfrom
fix/comms-blasts-and-cleanup

Conversation

@dylanjeffers

Copy link
Copy Markdown
Contributor
  • GET /comms/blasts and chat-create seeding (comms/chat.go getNewBlasts) now skip blasts older than the sender's last inbox-settings change, matching hasNewBlastFromUser and chat_allowed from fix(comms): closing the inbox stops new DMs from earlier blast recipients #1036. Before this, a follower who hadn't opened an old blast still saw it after the artist closed their inbox, and tapping it failed with "Not permitted to send messages to this user".

Comment cleanup: shorter comments in weeklyrotation/period.go, v1_challenges_info.go (+ one test name), chat_allowed (ddl and sql/01_schema.sql), and chat_inbox_closed_test.go.

Tests: go test ./api/comms/, go test ./api/ -run 'Blast|Chat|Comms|TestWeeklyPoolWindowStartAt|TestV1ChallengesInfo', go test ./weeklyrotation/, all passing. New TestGetNewBlastsAfterSenderClosesInbox and the new pending-blast assertions in TestChatBlastThenCloseInbox fail without the fix.

🤖 Generated with Claude Code

dylanjeffers and others added 2 commits September 23, 2026 16:45
GET /comms/blasts and chat creation still listed blasts sent before the
artist closed their inbox, so recipients saw a pending blast they could
not reply to. Apply the same cutoff hasNewBlastFromUser uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd chat_allowed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dylanjeffers
dylanjeffers merged commit 434ab0c into main Sep 24, 2026
2 checks passed
@dylanjeffers
dylanjeffers deleted the fix/comms-blasts-and-cleanup branch September 24, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant