diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-15 11:00:25 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:51 +0100 |
commit | 608624252466acf9f1d9ee1c1170bd4fe4d18d18 (patch) | |
tree | 47eab55bb5421b7fe88e0b2ac743a436fd9561cf /server/helpers/webfinger.ts | |
parent | 51548b31815c6f96f314ae96588a9adca150519d (diff) | |
download | PeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.tar.gz PeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.tar.zst PeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.zip |
Rename Pod -> Server
Diffstat (limited to 'server/helpers/webfinger.ts')
-rw-r--r-- | server/helpers/webfinger.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/helpers/webfinger.ts b/server/helpers/webfinger.ts index 0155e5f3e..31417e728 100644 --- a/server/helpers/webfinger.ts +++ b/server/helpers/webfinger.ts | |||
@@ -3,7 +3,7 @@ import * as WebFinger from 'webfinger.js' | |||
3 | import { isTestInstance } from './core-utils' | 3 | import { isTestInstance } from './core-utils' |
4 | import { isActivityPubUrlValid } from './custom-validators' | 4 | import { isActivityPubUrlValid } from './custom-validators' |
5 | import { WebFingerData } from '../../shared' | 5 | import { WebFingerData } from '../../shared' |
6 | import { fetchRemoteAccountAndCreatePod } from './activitypub' | 6 | import { fetchRemoteAccountAndCreateServer } from './activitypub' |
7 | 7 | ||
8 | const webfinger = new WebFinger({ | 8 | const webfinger = new WebFinger({ |
9 | webfist_fallback: false, | 9 | webfist_fallback: false, |
@@ -22,8 +22,8 @@ async function getAccountFromWebfinger (nameWithHost: string) { | |||
22 | throw new Error('Cannot find self link or href is not a valid URL.') | 22 | throw new Error('Cannot find self link or href is not a valid URL.') |
23 | } | 23 | } |
24 | 24 | ||
25 | const res = await fetchRemoteAccountAndCreatePod(selfLink.href) | 25 | const res = await fetchRemoteAccountAndCreateServer(selfLink.href) |
26 | if (res === undefined) throw new Error('Cannot fetch and create pod of remote account ' + selfLink.href) | 26 | if (res === undefined) throw new Error('Cannot fetch and create server of remote account ' + selfLink.href) |
27 | 27 | ||
28 | return res.account | 28 | return res.account |
29 | } | 29 | } |