1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-28 14:58:36 +09:00

Fix indent

This commit is contained in:
syuilo 2019-04-18 00:13:31 +09:00
parent ac4ea25267
commit e19ae644f1
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -20,21 +20,21 @@ export default async (actor: IRemoteUser, activity: IDelete): Promise<void> => {
const uri = (object as any).id;
switch (object.type) {
case 'Note':
case 'Question':
case 'Article':
deleteNote(actor, uri);
break;
case 'Tombstone':
const note = await Notes.findOne({ uri });
if (note != null) {
case 'Note':
case 'Question':
case 'Article':
deleteNote(actor, uri);
}
break;
break;
default:
apLogger.warn(`Unknown type: ${object.type}`);
break;
case 'Tombstone':
const note = await Notes.findOne({ uri });
if (note != null) {
deleteNote(actor, uri);
}
break;
default:
apLogger.warn(`Unknown type: ${object.type}`);
break;
}
};