kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Gate Nostr signing to Ditto
rodzic
448f5c6ab9
commit
1f653b1065
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue