diff options
Diffstat (limited to 'server/helpers/actor.ts')
-rw-r--r-- | server/helpers/actor.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/helpers/actor.ts b/server/helpers/actor.ts index 015b4a39f..a60d3ed5d 100644 --- a/server/helpers/actor.ts +++ b/server/helpers/actor.ts | |||
@@ -1,10 +1,10 @@ | |||
1 | |||
1 | import { ActorModel } from '../models/activitypub/actor' | 2 | import { ActorModel } from '../models/activitypub/actor' |
2 | import * as Bluebird from 'bluebird' | 3 | import { MActorAccountChannelId, MActorFull } from '../types/models' |
3 | import { MActorFull, MActorAccountChannelId } from '../types/models' | ||
4 | 4 | ||
5 | type ActorFetchByUrlType = 'all' | 'association-ids' | 5 | type ActorFetchByUrlType = 'all' | 'association-ids' |
6 | 6 | ||
7 | function fetchActorByUrl (url: string, fetchType: ActorFetchByUrlType): Bluebird<MActorFull | MActorAccountChannelId> { | 7 | function fetchActorByUrl (url: string, fetchType: ActorFetchByUrlType): Promise<MActorFull | MActorAccountChannelId> { |
8 | if (fetchType === 'all') return ActorModel.loadByUrlAndPopulateAccountAndChannel(url) | 8 | if (fetchType === 'all') return ActorModel.loadByUrlAndPopulateAccountAndChannel(url) |
9 | 9 | ||
10 | if (fetchType === 'association-ids') return ActorModel.loadByUrl(url) | 10 | if (fetchType === 'association-ids') return ActorModel.loadByUrl(url) |