]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/activitypub/actors/shared/url-to-object.ts
Relax log level
[github/Chocobozzz/PeerTube.git] / server / lib / activitypub / actors / shared / url-to-object.ts
index f4f16b04407655eb6833aa717130109977d3cbcd..7bc37f1ff83ca18b45caf035141bf6f83eb2d3e4 100644 (file)
@@ -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
   }
 }