mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +01:00
lint: unused requires, linting fixes
This commit is contained in:
@@ -54,15 +54,10 @@ Notes.assert = async (uid, input, options = {}) => {
|
||||
|
||||
const hash = { ...postData };
|
||||
delete hash._activitypub;
|
||||
// should call internal method here to create/edit post
|
||||
await db.setObject(key, hash);
|
||||
winston.verbose(`[activitypub/notes.assert] Note ${id} saved.`);
|
||||
}
|
||||
|
||||
// odd circular modular dependency issue here...
|
||||
// if (options.update === true) {
|
||||
// require('../posts/cache').del(String(id));
|
||||
// pubsub.publish('post:edit', String(id));
|
||||
// }
|
||||
}));
|
||||
|
||||
if (actors.size) {
|
||||
|
||||
Reference in New Issue
Block a user