mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 03:03:07 +02:00
Refactor
This commit is contained in:
parent
9694c1fc37
commit
18f317a4ac
1 changed files with 1 additions and 3 deletions
|
@ -2,7 +2,7 @@ import act from '../../act';
|
||||||
import unfollow from './unfollow';
|
import unfollow from './unfollow';
|
||||||
import Resolver from '../../resolver';
|
import Resolver from '../../resolver';
|
||||||
|
|
||||||
export default async (resolver: Resolver, actor, activity) => {
|
export default async (resolver: Resolver, actor, activity): Promise<void> => {
|
||||||
if ('actor' in activity && actor.account.uri !== activity.actor) {
|
if ('actor' in activity && actor.account.uri !== activity.actor) {
|
||||||
throw new Error();
|
throw new Error();
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,4 @@ export default async (resolver: Resolver, actor, activity) => {
|
||||||
await unfollow(result.object);
|
await unfollow(result.object);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
return null;
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue