Refactor
This commit is contained in:
parent
2547891f94
commit
321f61f1cb
2 changed files with 21 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue