From 54141398354e6e7b94aa3065a705a1251390111c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 20 Nov 2017 09:43:39 +0100 Subject: Refractor activity pub lib/helpers --- server/lib/user.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/lib/user.ts') diff --git a/server/lib/user.ts b/server/lib/user.ts index 2d7b36b4f..d54ffc916 100644 --- a/server/lib/user.ts +++ b/server/lib/user.ts @@ -1,11 +1,11 @@ import * as Sequelize from 'sequelize' -import { getActivityPubUrl } from '../helpers/activitypub' import { createPrivateAndPublicKeys } from '../helpers/peertube-crypto' import { database as db } from '../initializers' import { CONFIG } from '../initializers/constants' import { UserInstance } from '../models' import { createVideoChannel } from './video-channel' import { logger } from '../helpers/logger' +import { getAccountActivityPubUrl } from '../helpers/activitypub' async function createUserAccountAndChannel (user: UserInstance, validateUser = true) { const { account, videoChannel } = await db.sequelize.transaction(async t => { @@ -36,7 +36,7 @@ async function createUserAccountAndChannel (user: UserInstance, validateUser = t } async function createLocalAccountWithoutKeys (name: string, userId: number, applicationId: number, t: Sequelize.Transaction) { - const url = getActivityPubUrl('account', name) + const url = getAccountActivityPubUrl(name) const accountInstance = db.Account.build({ name, -- cgit v1.2.3