Gate Nostr signing to Ditto

environments/review-change-ent-6o2wvy/deployments/3528
Alex Gleason 2023-06-23 11:44:07 -05:00
rodzic 448f5c6ab9
commit 1f653b1065
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -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());
}
}

Wyświetl plik

@ -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