diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-08 03:35:02 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-08 03:35:02 +0900 |
| commit | 142d59be85cd06b11d9df1375bcd0a84c0425e22 (patch) | |
| tree | 63255a389c37ab19c9b9fb80d9c633275340a155 /src/remote/activitypub/renderer | |
| parent | Fix bug (diff) | |
| download | sharkey-142d59be85cd06b11d9df1375bcd0a84c0425e22.tar.gz sharkey-142d59be85cd06b11d9df1375bcd0a84c0425e22.tar.bz2 sharkey-142d59be85cd06b11d9df1375bcd0a84c0425e22.zip | |
Fix bug
Diffstat (limited to 'src/remote/activitypub/renderer')
| -rw-r--r-- | src/remote/activitypub/renderer/key.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/remote/activitypub/renderer/key.ts b/src/remote/activitypub/renderer/key.ts index fb5975a6c4..334e5e00cd 100644 --- a/src/remote/activitypub/renderer/key.ts +++ b/src/remote/activitypub/renderer/key.ts @@ -1,4 +1,3 @@ -import { createPublicKey } from 'crypto'; import config from '../../../config'; import { ILocalUser } from '../../../models/entities/user'; import { UserKeypair } from '../../../models/entities/user-keypair'; @@ -7,5 +6,5 @@ export default (user: ILocalUser, key: UserKeypair) => ({ id: `${config.url}/users/${user.id}/publickey`, type: 'Key', owner: `${config.url}/users/${user.id}`, - publicKeyPem: createPublicKey(key.keyPem) + publicKeyPem: key.publicKey }); |