monkeeShark/src/common/remote/activitypub/act/create.ts

10 lines
225 B
TypeScript
Raw Normal View History

2018-03-31 10:55:00 +00:00
import create from '../create';
export default (resolver, actor, activity) => {
if ('actor' in activity && actor.account.uri !== activity.actor) {
throw new Error;
}
return create(resolver, actor, activity.object);
};