aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/activitypub')
-rw-r--r--server/lib/activitypub/actor.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/activitypub/actor.ts b/server/lib/activitypub/actor.ts
index 5201bdeef..13b73077e 100644
--- a/server/lib/activitypub/actor.ts
+++ b/server/lib/activitypub/actor.ts
@@ -38,7 +38,7 @@ import {
38} from '../../typings/models' 38} from '../../typings/models'
39 39
40// Set account keys, this could be long so process after the account creation and do not block the client 40// Set account keys, this could be long so process after the account creation and do not block the client
41function setAsyncActorKeys (actor: MActor) { 41function setAsyncActorKeys <T extends MActor> (actor: T) {
42 return createPrivateAndPublicKeys() 42 return createPrivateAndPublicKeys()
43 .then(({ publicKey, privateKey }) => { 43 .then(({ publicKey, privateKey }) => {
44 actor.publicKey = publicKey 44 actor.publicKey = publicKey
@@ -148,7 +148,7 @@ function buildActorInstance (type: ActivityPubActorType, url: string, preferredU
148 sharedInboxUrl: WEBSERVER.URL + '/inbox', 148 sharedInboxUrl: WEBSERVER.URL + '/inbox',
149 followersUrl: url + '/followers', 149 followersUrl: url + '/followers',
150 followingUrl: url + '/following' 150 followingUrl: url + '/following'
151 }) 151 }) as MActor
152} 152}
153 153
154async function updateActorInstance (actorInstance: ActorModel, attributes: ActivityPubActor) { 154async function updateActorInstance (actorInstance: ActorModel, attributes: ActivityPubActor) {