mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 12:39:59 +01:00
Refactor
This commit is contained in:
parent
13f75b6f7d
commit
5c2978d1f6
@ -2,7 +2,7 @@ import act from '../../act';
|
||||
import unfollow from './unfollow';
|
||||
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) {
|
||||
throw new Error();
|
||||
}
|
||||
@ -21,6 +21,4 @@ export default async (resolver: Resolver, actor, activity) => {
|
||||
await unfollow(result.object);
|
||||
}
|
||||
}));
|
||||
|
||||
return null;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user