mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 09:23:48 +01:00
Add todo
This commit is contained in:
parent
716f3a4505
commit
2057fdde4a
@ -5,7 +5,7 @@ import undo from './undo';
|
||||
import { IObject } from '../type';
|
||||
import { IRemoteUser } from '../../../models/user';
|
||||
|
||||
export default async (actor: IRemoteUser, activity: IObject): Promise<void> => {
|
||||
const self = async (actor: IRemoteUser, activity: IObject): Promise<void> => {
|
||||
switch (activity.type) {
|
||||
case 'Create':
|
||||
await create(actor, activity);
|
||||
@ -27,8 +27,15 @@ export default async (actor: IRemoteUser, activity: IObject): Promise<void> => {
|
||||
await undo(actor, activity);
|
||||
break;
|
||||
|
||||
case 'Collection':
|
||||
case 'OrderedCollection':
|
||||
// TODO
|
||||
break;
|
||||
|
||||
default:
|
||||
console.warn(`unknown activity type: ${activity.type}`);
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
export default self;
|
||||
|
Loading…
Reference in New Issue
Block a user