]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/webfinger.ts
Rename Pod -> Server
[github/Chocobozzz/PeerTube.git] / server / helpers / webfinger.ts
index 0155e5f3eed580c959e98bae09f0cd0cbf7d883f..31417e72883469d31d904ddcba2d63b72d2b003a 100644 (file)
@@ -3,7 +3,7 @@ import * as WebFinger from 'webfinger.js'
 import { isTestInstance } from './core-utils'
 import { isActivityPubUrlValid } from './custom-validators'
 import { WebFingerData } from '../../shared'
-import { fetchRemoteAccountAndCreatePod } from './activitypub'
+import { fetchRemoteAccountAndCreateServer } from './activitypub'
 
 const webfinger = new WebFinger({
   webfist_fallback: false,
@@ -22,8 +22,8 @@ async function getAccountFromWebfinger (nameWithHost: string) {
     throw new Error('Cannot find self link or href is not a valid URL.')
   }
 
-  const res = await fetchRemoteAccountAndCreatePod(selfLink.href)
-  if (res === undefined) throw new Error('Cannot fetch and create pod of remote account ' + selfLink.href)
+  const res = await fetchRemoteAccountAndCreateServer(selfLink.href)
+  if (res === undefined) throw new Error('Cannot fetch and create server of remote account ' + selfLink.href)
 
   return res.account
 }