rudeshark.net/src/remote/activitypub/act/create.ts
2018-04-02 17:11:14 +09:00

10 lines
251 B
TypeScript

import create from '../create';
export default (resolver, actor, activity, distribute) => {
if ('actor' in activity && actor.account.uri !== activity.actor) {
throw new Error();
}
return create(resolver, actor, activity.object, distribute);
};