Complete @mention system with shared parsing, accessible autocomplete, canonical links, moderated local notifications, durable idempotent swarm delivery, navigable remote notifications, and exact-once bot replies
Hop-State: A_06FPG3MP3DEEGFB3AWBG03G Hop-Proposal: R_06FPG3KD4J27QKCSNRBMFF0 Hop-Task: T_06FPFT83JWNP9AP1GRH36VR Hop-Attempt: AT_06FPFT83JZM51ZFSMVPE5QR
This commit is contained in:
@@ -52,4 +52,18 @@ describe('browser notification presentation', () => {
|
||||
url: '/notifications',
|
||||
});
|
||||
});
|
||||
|
||||
it('links federated mentions to the source swarm post', () => {
|
||||
expect(getBrowserNotificationContent({
|
||||
id: 'notification-remote',
|
||||
type: 'mention',
|
||||
actor: { handle: 'alice@remote.example', displayName: 'Alice' },
|
||||
post: {
|
||||
id: 'swarm:remote.example:550e8400-e29b-41d4-a716-446655440000',
|
||||
content: 'Hello @bob@local.example',
|
||||
},
|
||||
})).toMatchObject({
|
||||
url: '/posts/swarm:remote.example:550e8400-e29b-41d4-a716-446655440000',
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user