This commit is contained in:
syuilo 2018-04-07 16:36:40 +09:00
parent 2547891f94
commit 321f61f1cb
2 changed files with 21 additions and 4 deletions

View file

@ -2,10 +2,10 @@ import create from './create';
import performDeleteActivity from './delete';
import follow from './follow';
import undo from './undo';
import { IObject } from '../type';
import { Object } from '../type';
import { IRemoteUser } from '../../../models/user';
const self = async (actor: IRemoteUser, activity: IObject): Promise<void> => {
const self = async (actor: IRemoteUser, activity: Object): Promise<void> => {
switch (activity.type) {
case 'Create':
await create(actor, activity);