1 import { ActorModel } from '../models/activitypub/actor'
3 type ActorFetchByUrlType = 'all' | 'actor-and-association-ids'
4 function fetchActorByUrl (url: string, fetchType: ActorFetchByUrlType) {
5 if (fetchType === 'all') return ActorModel.loadByUrlAndPopulateAccountAndChannel(url)
7 if (fetchType === 'actor-and-association-ids') return ActorModel.loadByUrl(url)