Gate Nostr signing to Ditto
This commit is contained in:
@ -423,7 +423,7 @@ const UI: React.FC<IUI> = ({ children }) => {
|
||||
if (!userStream.current) {
|
||||
userStream.current = dispatch(connectUserStream({ statContext }));
|
||||
}
|
||||
if (!nostrStream.current && window.nostr) {
|
||||
if (!nostrStream.current && features.nostrSign && window.nostr) {
|
||||
nostrStream.current = dispatch(connectNostrStream());
|
||||
}
|
||||
}
|
||||
|
||||
@ -680,6 +680,12 @@ const getInstanceFeatures = (instance: Instance) => {
|
||||
v.software === MASTODON && gte(v.compatVersion, '3.3.0'),
|
||||
]),
|
||||
|
||||
/**
|
||||
* Ability to sign Nostr events over websocket.
|
||||
* @see GET /api/v1/streaming?stream=nostr
|
||||
*/
|
||||
nostrSign: v.software === DITTO,
|
||||
|
||||
/**
|
||||
* Add private notes to accounts.
|
||||
* @see POST /api/v1/accounts/:id/note
|
||||
|
||||
Reference in New Issue
Block a user