Distribute posts from remote
This commit is contained in:
parent
aa94035987
commit
ce7efc4dbb
12 changed files with 417 additions and 353 deletions
|
|
@ -1,9 +1,9 @@
|
|||
import create from '../create';
|
||||
|
||||
export default (resolver, actor, activity) => {
|
||||
export default (resolver, actor, activity, distribute) => {
|
||||
if ('actor' in activity && actor.account.uri !== activity.actor) {
|
||||
throw new Error();
|
||||
}
|
||||
|
||||
return create(resolver, actor, activity.object);
|
||||
return create(resolver, actor, activity.object, distribute);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue