rudeshark.net/src/remote/activitypub/act/delete/note.ts

12 lines
277 B
TypeScript
Raw Normal View History

2018-04-06 12:35:23 +02:00
import Post from '../../../../models/post';
import { createDb } from '../../../../queue';
export default async function(note) {
const post = await Post.findOneAndDelete({ uri: note.id });
createDb({
type: 'deletePostDependents',
id: post._id
}).delay(65536).save();
}