1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-20 08:15:49 +02:00
This commit is contained in:
syuilo
2018-04-05 01:22:41 +09:00
parent fba46b4c7f
commit eb304cb5fb
8 changed files with 114 additions and 108 deletions

View File

@@ -0,0 +1,15 @@
import unfollow from './unfollow';
export default async (actor, activity): Promise<void> => {
if ('actor' in activity && actor.account.uri !== activity.actor) {
throw new Error('invalid actor');
}
switch (activity.object.type) {
case 'Follow':
unfollow(activity.object);
break;
}
return null;
};