mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Index client addr in search extensions
This commit is contained in:
parent
621d92dcf6
commit
1c2d7a6793
1 changed files with 6 additions and 0 deletions
|
|
@ -522,6 +522,12 @@ export class DittoPgStore extends NPostgres {
|
|||
}
|
||||
}
|
||||
|
||||
const client = event.tags.find(([name]) => name === 'client')?.[2];
|
||||
|
||||
if (client && /^31990:([0-9a-f]{64}):(.+)$/.test(client)) {
|
||||
ext.client = client;
|
||||
}
|
||||
|
||||
ext.protocol = event.tags.find(([name]) => name === 'proxy')?.[2] ?? 'nostr';
|
||||
|
||||
return ext;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue