Fix indent
This commit is contained in:
parent
ac4ea25267
commit
e19ae644f1
1 changed files with 14 additions and 14 deletions
|
@ -20,21 +20,21 @@ export default async (actor: IRemoteUser, activity: IDelete): Promise<void> => {
|
||||||
const uri = (object as any).id;
|
const uri = (object as any).id;
|
||||||
|
|
||||||
switch (object.type) {
|
switch (object.type) {
|
||||||
case 'Note':
|
case 'Note':
|
||||||
case 'Question':
|
case 'Question':
|
||||||
case 'Article':
|
case 'Article':
|
||||||
deleteNote(actor, uri);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'Tombstone':
|
|
||||||
const note = await Notes.findOne({ uri });
|
|
||||||
if (note != null) {
|
|
||||||
deleteNote(actor, uri);
|
deleteNote(actor, uri);
|
||||||
}
|
break;
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
case 'Tombstone':
|
||||||
apLogger.warn(`Unknown type: ${object.type}`);
|
const note = await Notes.findOne({ uri });
|
||||||
break;
|
if (note != null) {
|
||||||
|
deleteNote(actor, uri);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
apLogger.warn(`Unknown type: ${object.type}`);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue