10 lines
225 B
TypeScript
10 lines
225 B
TypeScript
|
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);
|
||
|
};
|