mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 22:22:51 +09:00
Fix bug
This commit is contained in:
parent
58abb0ce8f
commit
452514f7fe
@ -11,6 +11,7 @@ import { isCollectionOrOrderedCollection, IObject, IPerson } from '../type';
|
|||||||
import { IDriveFile } from '../../../models/drive-file';
|
import { IDriveFile } from '../../../models/drive-file';
|
||||||
import Meta from '../../../models/meta';
|
import Meta from '../../../models/meta';
|
||||||
import htmlToMFM from '../../../mfm/html-to-mfm';
|
import htmlToMFM from '../../../mfm/html-to-mfm';
|
||||||
|
import { updateUserStats } from '../../../services/update-chart';
|
||||||
|
|
||||||
const log = debug('misskey:activitypub');
|
const log = debug('misskey:activitypub');
|
||||||
|
|
||||||
@ -148,6 +149,8 @@ export async function createPerson(value: any, resolver?: Resolver): Promise<IUs
|
|||||||
'stats.usersCount': 1
|
'stats.usersCount': 1
|
||||||
}
|
}
|
||||||
}, { upsert: true });
|
}, { upsert: true });
|
||||||
|
|
||||||
|
updateUserStats(user, true);
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//#region アイコンとヘッダー画像をフェッチ
|
//#region アイコンとヘッダー画像をフェッチ
|
||||||
|
@ -7,6 +7,7 @@ import generateUserToken from '../common/generate-native-user-token';
|
|||||||
import config from '../../../config';
|
import config from '../../../config';
|
||||||
import Meta from '../../../models/meta';
|
import Meta from '../../../models/meta';
|
||||||
import RegistrationTicket from '../../../models/registration-tickets';
|
import RegistrationTicket from '../../../models/registration-tickets';
|
||||||
|
import { updateUserStats } from '../../../services/update-chart';
|
||||||
|
|
||||||
if (config.recaptcha) {
|
if (config.recaptcha) {
|
||||||
recaptcha.init({
|
recaptcha.init({
|
||||||
@ -129,6 +130,8 @@ export default async (ctx: Koa.Context) => {
|
|||||||
}, { upsert: true });
|
}, { upsert: true });
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
|
updateUserStats(account, true);
|
||||||
|
|
||||||
// Response
|
// Response
|
||||||
ctx.body = await pack(account);
|
ctx.body = await pack(account);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user