diff options
Diffstat (limited to 'server/lib/activitypub/actor.ts')
-rw-r--r-- | server/lib/activitypub/actor.ts | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/server/lib/activitypub/actor.ts b/server/lib/activitypub/actor.ts index f27733418..9257d7d20 100644 --- a/server/lib/activitypub/actor.ts +++ b/server/lib/activitypub/actor.ts | |||
@@ -62,18 +62,10 @@ async function getOrCreateActorAndServerAndModel (activityActor: string | Activi | |||
62 | } | 62 | } |
63 | } | 63 | } |
64 | 64 | ||
65 | const options = { | 65 | actor = await retryTransactionWrapper(saveActorAndServerAndModelIfNotExist, result, ownerActor) |
66 | arguments: [ result, ownerActor ], | ||
67 | errorMessage: 'Cannot save actor and server with many retries.' | ||
68 | } | ||
69 | actor = await retryTransactionWrapper(saveActorAndServerAndModelIfNotExist, options) | ||
70 | } | 66 | } |
71 | 67 | ||
72 | const options = { | 68 | return retryTransactionWrapper(refreshActorIfNeeded, actor) |
73 | arguments: [ actor ], | ||
74 | errorMessage: 'Cannot refresh actor if needed with many retries.' | ||
75 | } | ||
76 | return retryTransactionWrapper(refreshActorIfNeeded, options) | ||
77 | } | 69 | } |
78 | 70 | ||
79 | function buildActorInstance (type: ActivityPubActorType, url: string, preferredUsername: string, uuid?: string) { | 71 | function buildActorInstance (type: ActivityPubActorType, url: string, preferredUsername: string, uuid?: string) { |