Forward the conversation fields a group DM push needs #3

Merged
vinz merged 1 commit from feature/group-push-fields into main 2026-09-21 20:14:43 +02:00
Owner

Accepts and forwards conversation_id, conversation_type and sender_id, so the Pixelfed fork can push group DMs (Pixelfed 0.14.2). A group push carries no account_id by design: shipped app versions would otherwise open a private thread with the sender. Data map extracted into pushData() with a test for both the group and the legacy shape.

Tested: go build, go vet, go test (golang:1.26-bookworm).

🤖 Generated with Claude Code

Accepts and forwards conversation_id, conversation_type and sender_id, so the Pixelfed fork can push group DMs (Pixelfed 0.14.2). A group push carries no account_id by design: shipped app versions would otherwise open a private thread with the sender. Data map extracted into pushData() with a test for both the group and the legacy shape. Tested: go build, go vet, go test (golang:1.26-bookworm). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Pixelfed 0.14.2 has group conversations, and the fork is about to push
them. A group push has to say which conversation it belongs to, but the
relay forwards a fixed set of keys and would drop anything new in
silence. It now also accepts and forwards conversation_id,
conversation_type ("dm" or "group") and sender_id.

A group push carries no account_id, on purpose: shipped app versions open
the 1:1 thread with whatever account_id names, which for a group would be
a private thread with the sender. Without it they open the app and go
nowhere.

The data map moves into pushData() so this can be tested. Empty values
are still dropped by the APNs client, so a payload from an older fork
forwards exactly what it did before.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
vinz merged commit 3ca21e6966 into main 2026-09-21 20:14:43 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
vinz/scatto-push-relay!3
No description provided.