fix ozone
This commit is contained in:
61
patching/150-ozone-plc-fix.patch
Normal file
61
patching/150-ozone-plc-fix.patch
Normal file
@@ -0,0 +1,61 @@
|
||||
diff --git a/components/shell/ConfigurationFlow.tsx b/components/shell/ConfigurationFlow.tsx
|
||||
index 7280a7b..0bb4e14 100644
|
||||
--- a/components/shell/ConfigurationFlow.tsx
|
||||
+++ b/components/shell/ConfigurationFlow.tsx
|
||||
@@ -97,43 +97,6 @@ export function ConfigurationFlow({
|
||||
}
|
||||
|
||||
if (config.needs.key || config.needs.service) {
|
||||
- if (authDid !== config.did) {
|
||||
- return (
|
||||
- <>
|
||||
- <ErrorInfo type="warn" className="mt-2">
|
||||
- {`You're`} logged in as {authIdentifier}. Please login as{' '}
|
||||
- {config.handle || 'your Ozone service account'} in order to
|
||||
- configure Ozone.
|
||||
- </ErrorInfo>
|
||||
- <Button
|
||||
- className="w-full mt-2"
|
||||
- icon={<ArrowLeftOnRectangleIcon />}
|
||||
- onClick={signOut}
|
||||
- >
|
||||
- Restart
|
||||
- </Button>
|
||||
- </>
|
||||
- )
|
||||
- }
|
||||
- if (config.did.startsWith('did:web:')) {
|
||||
- return (
|
||||
- <>
|
||||
- <ErrorInfo type="warn" className="mt-2">
|
||||
- You must configure your identity on your own if {`you're`} using a
|
||||
- did:web. You will need to add a service with id{' '}
|
||||
- {`"atproto_labeler"`} and verification method with id{' '}
|
||||
- {`"atproto_label"`}.
|
||||
- </ErrorInfo>
|
||||
- <Button
|
||||
- className="w-full mt-2"
|
||||
- icon={<ArrowLeftOnRectangleIcon />}
|
||||
- onClick={signOut}
|
||||
- >
|
||||
- Restart
|
||||
- </Button>
|
||||
- </>
|
||||
- )
|
||||
- }
|
||||
if (!config.doc) {
|
||||
return (
|
||||
<>
|
||||
diff --git a/lib/identity.ts b/lib/identity.ts
|
||||
index a8ec3a7..8e4d171 100644
|
||||
--- a/lib/identity.ts
|
||||
+++ b/lib/identity.ts
|
||||
@@ -83,7 +83,7 @@ export function didDocToData(doc: {
|
||||
const [, id] = s['id'].split('#')
|
||||
acc[id] = {
|
||||
type: s['type'],
|
||||
- serviceEndpoint: s['serviceEndpoint'],
|
||||
+ endpoint: s['serviceEndpoint'],
|
||||
}
|
||||
}
|
||||
return acc
|
||||
Reference in New Issue
Block a user