rudeshark.net/src/common/remote/activitypub/act/create.ts

10 lines
225 B
TypeScript
Raw Normal View History

2018-03-31 12:55:00 +02: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);
};