X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Factivitypub%2Factors%2Fshared%2Furl-to-object.ts;h=7bc37f1ff83ca18b45caf035141bf6f83eb2d3e4;hb=b0f4204266057316c11fc034da0ce86a212dc0b3;hp=f4f16b04407655eb6833aa717130109977d3cbcd;hpb=cf21b2cbef61929177b9c09b5e017c3b7eb8535d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/activitypub/actors/shared/url-to-object.ts b/server/lib/activitypub/actors/shared/url-to-object.ts index f4f16b044..7bc37f1ff 100644 --- a/server/lib/activitypub/actors/shared/url-to-object.ts +++ b/server/lib/activitypub/actors/shared/url-to-object.ts @@ -1,9 +1,8 @@ - -import { checkUrlsSameHost } from '@server/helpers/activitypub' import { sanitizeAndCheckActorObject } from '@server/helpers/custom-validators/activitypub/actor' import { logger } from '@server/helpers/logger' import { doJSONRequest } from '@server/helpers/requests' import { ActivityPubActor, ActivityPubOrderedCollection } from '@shared/models' +import { checkUrlsSameHost } from '../../url' async function fetchRemoteActor (actorUrl: string): Promise<{ statusCode: number, actorObject: ActivityPubActor }> { logger.info('Fetching remote actor %s.', actorUrl) @@ -48,7 +47,7 @@ async function fetchActorTotalItems (url: string) { return body.totalItems || 0 } catch (err) { - logger.warn('Cannot fetch remote actor count %s.', url, { err }) + logger.info('Cannot fetch remote actor count %s.', url, { err }) return 0 } }