diff options
Diffstat (limited to 'server/controllers/api/search.ts')
-rw-r--r-- | server/controllers/api/search.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/search.ts b/server/controllers/api/search.ts index 0cb5674c2..ef0f4285d 100644 --- a/server/controllers/api/search.ts +++ b/server/controllers/api/search.ts | |||
@@ -15,7 +15,7 @@ import { buildNSFWFilter, isUserAbleToSearchRemoteURI } from '../../helpers/expr | |||
15 | import { logger } from '../../helpers/logger' | 15 | import { logger } from '../../helpers/logger' |
16 | import { getFormattedObjects } from '../../helpers/utils' | 16 | import { getFormattedObjects } from '../../helpers/utils' |
17 | import { loadActorUrlOrGetFromWebfinger } from '../../helpers/webfinger' | 17 | import { loadActorUrlOrGetFromWebfinger } from '../../helpers/webfinger' |
18 | import { getOrCreateActorAndServerAndModel } from '../../lib/activitypub/actor' | 18 | import { getOrCreateAPActor } from '../../lib/activitypub/actors' |
19 | import { | 19 | import { |
20 | asyncMiddleware, | 20 | asyncMiddleware, |
21 | commonVideosFiltersValidator, | 21 | commonVideosFiltersValidator, |
@@ -145,7 +145,7 @@ async function searchVideoChannelURI (search: string, isWebfingerSearch: boolean | |||
145 | 145 | ||
146 | if (isUserAbleToSearchRemoteURI(res)) { | 146 | if (isUserAbleToSearchRemoteURI(res)) { |
147 | try { | 147 | try { |
148 | const actor = await getOrCreateActorAndServerAndModel(uri, 'all', true, true) | 148 | const actor = await getOrCreateAPActor(uri, 'all', true, true) |
149 | videoChannel = actor.VideoChannel | 149 | videoChannel = actor.VideoChannel |
150 | } catch (err) { | 150 | } catch (err) { |
151 | logger.info('Cannot search remote video channel %s.', uri, { err }) | 151 | logger.info('Cannot search remote video channel %s.', uri, { err }) |