diff options
Diffstat (limited to 'server/helpers/activitypub.ts')
-rw-r--r-- | server/helpers/activitypub.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/helpers/activitypub.ts b/server/helpers/activitypub.ts index 6f216e106..aff58515a 100644 --- a/server/helpers/activitypub.ts +++ b/server/helpers/activitypub.ts | |||
@@ -8,7 +8,7 @@ import { ActivityPubActor } from '../../shared/models/activitypub/activitypub-ac | |||
8 | import { VideoChannelObject } from '../../shared/models/activitypub/objects/video-channel-object' | 8 | import { VideoChannelObject } from '../../shared/models/activitypub/objects/video-channel-object' |
9 | import { ResultList } from '../../shared/models/result-list.model' | 9 | import { ResultList } from '../../shared/models/result-list.model' |
10 | import { database as db, REMOTE_SCHEME } from '../initializers' | 10 | import { database as db, REMOTE_SCHEME } from '../initializers' |
11 | import { ACTIVITY_PUB_ACCEPT_HEADER, CONFIG, STATIC_PATHS } from '../initializers/constants' | 11 | import { ACTIVITY_PUB, CONFIG, STATIC_PATHS } from '../initializers/constants' |
12 | import { videoChannelActivityObjectToDBAttributes } from '../lib/activitypub/misc' | 12 | import { videoChannelActivityObjectToDBAttributes } from '../lib/activitypub/misc' |
13 | import { sendVideoAnnounce } from '../lib/activitypub/send-request' | 13 | import { sendVideoAnnounce } from '../lib/activitypub/send-request' |
14 | import { sendVideoChannelAnnounce } from '../lib/index' | 14 | import { sendVideoChannelAnnounce } from '../lib/index' |
@@ -99,7 +99,7 @@ async function fetchRemoteAccountAndCreateServer (accountUrl: string) { | |||
99 | uri: accountUrl, | 99 | uri: accountUrl, |
100 | method: 'GET', | 100 | method: 'GET', |
101 | headers: { | 101 | headers: { |
102 | 'Accept': ACTIVITY_PUB_ACCEPT_HEADER | 102 | 'Accept': ACTIVITY_PUB.ACCEPT_HEADER |
103 | } | 103 | } |
104 | } | 104 | } |
105 | 105 | ||
@@ -157,7 +157,7 @@ async function fetchRemoteVideoChannel (ownerAccount: AccountInstance, videoChan | |||
157 | uri: videoChannelUrl, | 157 | uri: videoChannelUrl, |
158 | method: 'GET', | 158 | method: 'GET', |
159 | headers: { | 159 | headers: { |
160 | 'Accept': ACTIVITY_PUB_ACCEPT_HEADER | 160 | 'Accept': ACTIVITY_PUB.ACCEPT_HEADER |
161 | } | 161 | } |
162 | } | 162 | } |
163 | 163 | ||