Improve admin dashboard

This commit is contained in:
syuilo 2018-11-03 11:38:00 +09:00
parent f9f2ca51ac
commit aadd5b95b8
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
10 changed files with 183 additions and 8 deletions

View file

@ -8,6 +8,7 @@ import perform from '../../../remote/activitypub/perform';
import { resolvePerson, updatePerson } from '../../../remote/activitypub/models/person';
import { toUnicode } from 'punycode';
import { URL } from 'url';
import { publishApLogStream } from '../../../stream';
const log = debug('misskey:queue:inbox');
@ -61,6 +62,15 @@ export default async (job: bq.Job, done: any): Promise<void> => {
}) as IRemoteUser;
}
//#region Log
publishApLogStream({
direction: 'in',
activity: activity.type,
host: user.host,
actor: user.username
});
//#endregion
// Update activityの場合は、ここで署名検証/更新処理まで実施して終了
if (activity.type === 'Update') {
if (activity.object && activity.object.type === 'Person') {