]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/model-loaders/actor.ts
Translated using Weblate (Persian)
[github/Chocobozzz/PeerTube.git] / server / lib / model-loaders / actor.ts
index 234cb344f06f8bb10e268207bb833eef28cfe61e..1355d8ee2c836ae74177b2d94e64b33828d8e6fa 100644 (file)
@@ -2,15 +2,16 @@
 import { ActorModel } from '../../models/actor/actor'
 import { MActorAccountChannelId, MActorFull } from '../../types/models'
 
-type ActorFetchByUrlType = 'all' | 'association-ids'
+type ActorLoadByUrlType = 'all' | 'association-ids'
 
-function fetchActorByUrl (url: string, fetchType: ActorFetchByUrlType): Promise<MActorFull | MActorAccountChannelId> {
+function loadActorByUrl (url: string, fetchType: ActorLoadByUrlType): Promise<MActorFull | MActorAccountChannelId> {
   if (fetchType === 'all') return ActorModel.loadByUrlAndPopulateAccountAndChannel(url)
 
   if (fetchType === 'association-ids') return ActorModel.loadByUrl(url)
 }
 
 export {
-  ActorFetchByUrlType,
-  fetchActorByUrl
+  ActorLoadByUrlType,
+
+  loadActorByUrl
 }